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

Unable to go install tagged version since introduction of v prefix #1237

Open
ileitch opened this issue Jan 29, 2024 · 1 comment
Open

Unable to go install tagged version since introduction of v prefix #1237

ileitch opened this issue Jan 29, 2024 · 1 comment

Comments

@ileitch
Copy link

ileitch commented Jan 29, 2024

$ go install github.com/bazelbuild/buildtools/buildifier@6.1.1
go: downloading github.com/bazelbuild/buildtools v0.0.0-20230425225026-3dcc8d67e8ea

Then for every version after the introduction of the v prefix:

$ go install github.com/bazelbuild/buildtools/buildifier@v6.4.0
go: github.com/bazelbuild/buildtools/buildifier@v6.4.0: github.com/bazelbuild/buildtools@v6.4.0: invalid version: module contains a go.mod file, so module path must match major version ("github.com/bazelbuild/buildtools/v6")
$ go version
go version go1.21.6 darwin/arm64
@kaliaumem
Copy link

Same issue here. I'm trying to install buildifier in a Docker image meant to be quite stable for our CI.

Files not being formatted properly fails our build on purpose, so having unpredictable behavior changes from buildifier because we have to rebuild our images with latest is a non-starter.

I guess we're stuck with version 6.1.1 for now

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

No branches or pull requests

2 participants