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

Also report Helper version #189

Open
rittneje opened this issue Sep 29, 2020 · 3 comments
Open

Also report Helper version #189

rittneje opened this issue Sep 29, 2020 · 3 comments

Comments

@rittneje
Copy link

I am using the amazon-ecr-credential-helper, which leverages docker-credential-helpers/credentials. When I run amazon-ecr-credential-helper version it reports 0.6.3 (the version of this library) instead of its own version (0.4.0), which is very confusing. I think it would be helpful to allow the Helper implementation to also include a Version() string method that, if implemented, is printed by the version command instead.

@mat007
Copy link
Member

mat007 commented Sep 29, 2020

@rittneje
Copy link
Author

I think this is a general issue though, not just for the amazon-ecr-credential-helper. When you run the command, the usage text says you can specify version, but that yields a totally unexpected result from the perspective of the client. I think it would make more sense not to force each helper implementation to independently define a -v flag like that.

@whereisaaron
Copy link

For a gazillion-ish other tools version returns the version of the tool and not the version of one library dependency 😄

This was a really poor decision, and will continue to waste human time until changed. In the meantime, at the least the usage text could try to warn the user.

Usage: docker-credential-ecr-login <store|get|erase|list|version>
IMPORTANT: 'version' is not the version of docker-credential-ecr-login but the version of the docker library it uses.
Use '-v' to get the version of this tool.

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

3 participants