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

ci: fix version output in version subcommand (release binaries) #176

Merged
merged 1 commit into from
Nov 13, 2024

Conversation

dsiebel
Copy link
Contributor

@dsiebel dsiebel commented Nov 12, 2024

Fixes #155

I noticed that docker-credential-gcr version does not print the correct version when downloaded from the release assets:

~ ✗ docker-credential-gcr version
Google Container Registry Docker credential helper (devel)

In our case, this breaks idempotent installs in CI, because we can not detect any previously installed versions properly.
Having to install go first to be able to install docker-credential-gcr would also waste valuable build time.

Looking through the code I noticed that the goreleaser.yaml config wasn't using the exact ldflags that is mentioned in config/const.go. The config essentially references the wrong package.

Copy link

google-cla bot commented Nov 12, 2024

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

@dsiebel
Copy link
Contributor Author

dsiebel commented Nov 12, 2024

I signed the CLA a while ago, when contributing to https://github.com/GoogleContainerTools/skaffold. Looks like GitHub's email privacy settings break the detection...

@dsiebel dsiebel changed the title ci: fix version output in version subcommand ci: fix version output in version subcommand (release binaries) Nov 13, 2024
@yihanzhen
Copy link
Member

Thank you!

@yihanzhen yihanzhen merged commit 9240d11 into GoogleCloudPlatform:master Nov 13, 2024
8 checks passed
@dsiebel dsiebel deleted the patch-1 branch November 13, 2024 20:47
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.

Missing version number when running docker-credential-gcr version
2 participants