-
Notifications
You must be signed in to change notification settings - Fork 93
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 install a pinned version using go install
#128
Comments
Weird and probably related: If you install via an |
I believe there would be need to copy the v2.0+ changes to a |
I believe this can be resolved by changing: Line 1 in 62afb27
From
to
This also requires updating all imports in the various child packages so that they don't pull v1 code. |
The bug here is that people can't install a pinned version. WORKAROUND: II think the I've done a file diff and verified that the code being pulled matches the commit-sha. docker-credential-gcr v2.1.8 and docker-credential-gcr 62afb2723512 are functionally the same. Only the version number is different. |
I'm a little hesitant to approve #138 - I don't believe I've used other github packages that need the Could this instead be fixed with a change to the .goreleaser.yml file? |
@rafibarash No change to goreleaser configuration or bazel build rules could ever address this card. This tool needs to be buildable via normal "go install" and in order to do that it must comply with the requirement of a major version suffix. https://go.dev/ref/mod#major-version-suffixes If there had never been any >=2 tags created then things could have carried on as is, but that ship has sailed. |
Sounds good, I'll create another release. Thanks for the fix! |
Well, look like a new but similar error popped up after https://github.com/GoogleCloudPlatform/docker-credential-gcr/releases/tag/v2.1.10.
Will look into a fix |
Actually nvm, I forgot about adding the
In hindsight, this should have been a major release change ( |
/question
As developer trying to use
docker-credential-gcr
, I tried installing usinggo install
It results in the following error,
Based on the error I tried doing,
Which also results in same error as above.
If I do
go install github.com/GoogleCloudPlatform/docker-credential-gcr@latest
it works, but I need to pin to a version of the binary.Any clues?
The text was updated successfully, but these errors were encountered: