Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mchmarny after migration cleanup #815

Closed
wants to merge 2 commits into from
Closed

mchmarny after migration cleanup #815

wants to merge 2 commits into from

Conversation

mchmarny
Copy link
Contributor

@mchmarny mchmarny commented Sep 6, 2022

Updates the repo path in all the non-go files (release, test, readme etc)

Copy link
Member

@imjasonh imjasonh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! Some of these will need to wait for the next step.

@@ -70,7 +68,7 @@ apk add ko
With Go 1.18+, build and install the latest released version:

```
go install github.com/google/ko@latest
go install github.com/ko-build/ko@latest
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This one will actually have to wait until we rename the Go import path. Even though the repo name has changed, as long as the GH redirect is in place, Go considers this github.com/google/ko.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I couldn't find any discussion, is there one about doing this anywhere (renaming the go import paths)? Or should someone start one and / or help PR that change?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is roughly sketched out in #791

I don't have a set timeline for it yet, I think a couple other things have to happen first. I'd guess some time after Kubecon we'll deprecate github.com/google/ko and point folks to importing ko.build/pkg/build and go install ko.build@latest.

As part of that we'll also move the ko.build website into this repo (#749) which also sets the vanity importpath meta tags.

@@ -1,5 +1,5 @@
baseImageOverrides:
github.com/google/ko: golang:1.18
github.com/ko-build/ko: golang:1.18
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
github.com/ko-build/ko: golang:1.18
github.com/google/ko: golang:1.18

@@ -13,7 +13,7 @@ builds:
flags:
- -trimpath
ldflags:
- "-s -w -X github.com/google/ko/pkg/commands.Version={{.Version}}"
- "-s -w -X github.com/ko-build/ko/pkg/commands.Version={{.Version}}"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
- "-s -w -X github.com/ko-build/ko/pkg/commands.Version={{.Version}}"
- "-s -w -X github.com/google/ko/pkg/commands.Version={{.Version}}"

Comment on lines +20 to +26
mkdir -p "$GOPATH/src/github.com/ko-build/ko"
cp -r "$ROOT_DIR/"* "$GOPATH/src/github.com/ko-build/ko/"

echo "Downloading github.com/go-training/helloworld"
GO111MODULE=off go get -d github.com/go-training/helloworld

pushd "$GOPATH/src/github.com/google/ko" || exit 1
pushd "$GOPATH/src/github.com/ko-build/ko" || exit 1
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should refer to google/ko too for now.

@mchmarny mchmarny closed this by deleting the head repository Oct 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants