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

Fixes #432, override docker-credential-helpers version fields #635

Merged
merged 1 commit into from
Nov 18, 2023

Conversation

tnaroska
Copy link

Fixes #432: Release version inconsistent with docker-credential-ecr-login version

Description of changes:

During build, override the name/package/version/revision fields defined in docker-credential-helpers/blob/master/credentials/version.go

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@tnaroska tnaroska requested review from a team as code owners October 15, 2023 07:20

version_ldflags=""
version_ldflags="-X ${package_docker}/credentials.Name=docker-credential-ecr-login -X ${package_docker}/credentials.Package=${package_root%/*}"
Copy link
Member

Choose a reason for hiding this comment

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

instead of the extra override of these variables in credentials, imo a better option is assigning them with the overridden variables in version, at the initialization time of the program.

Copy link
Author

Choose a reason for hiding this comment

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

hi @henry118, I updated the PR as suggested.

Copy link
Member

Choose a reason for hiding this comment

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

Thanks @tnaroska. The change looks good. Can you squash your commits?

Copy link
Author

Choose a reason for hiding this comment

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

👍 done

@henry118 henry118 merged commit 0d252d8 into awslabs:main Nov 18, 2023
8 checks passed
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.

Release version inconsistent with docker-credential-ecr-login version
2 participants