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

The v2 module path should be github.com/GoogleContainerTools/skaffold/v2 #8161

Closed
sethrylan opened this issue Nov 28, 2022 · 2 comments · Fixed by #8169
Closed
Labels
kind/bug Something isn't working meta/release priority/p2 May take a couple of releases

Comments

@sethrylan
Copy link
Contributor

Expected behavior

We can use go get to download the skaffold packages.

As per the go documentation, any major version updates should be reflected in the module's path.

Actual behavior

go version
go version go1.19.3 linux/amd64go get github.com/GoogleContainerTools/[email protected]                                               
go: github.com/GoogleContainerTools/[email protected]: invalid version: module contains a go.mod file, so module path must match major version ("github.com/GoogleContainerTools/skaffold/v2")go get github.com/GoogleContainerTools/skaffold/[email protected]
go: github.com/GoogleContainerTools/[email protected]: invalid version: module contains a go.mod file, so module path must match major version ("github.com/GoogleContainerTools/skaffold/v2")

Information

  • Skaffold version: v2.0.2
  • Operating system: 18.04.1-Ubuntu
  • Installed via: go get
  • Contents of skaffold.yaml: N/A
@aaron-prindle aaron-prindle added kind/bug Something isn't working meta/release priority/p1 High impact feature/bug. labels Nov 28, 2022
@aaron-prindle
Copy link
Contributor

aaron-prindle commented Nov 28, 2022

@sethrylan thanks for flagging this. I see you have a draft PR here:
#8162

Lmk if you need anything on our end. Also is there a reason that PR goes to v2 branch vs main branch (does the Skaffold module path github.com/GoogleContainerTools/skaffold/v2 relate to the branch used? Sorry if this is obvious, need to re-read the docs on modules - it's a been a while since the team had to directly muck with them outside of go get and go mod tidy)

@sethrylan
Copy link
Contributor Author

is there a reason that PR goes to v2 branch vs main branch (does the Skaffold module path github.com/GoogleContainerTools/skaffold/v2 relate to the branch used?

Nope! That was my mistake. The v2 branch is old, and main is the correct target. I've made another pass at this issue with #8169

That PR is ready for CI and review. Let me know what you think.

@renzodavid9 renzodavid9 added priority/p2 May take a couple of releases and removed priority/p1 High impact feature/bug. labels Jan 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Something isn't working meta/release priority/p2 May take a couple of releases
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants