Open Rick-xuy opened 1 year ago
I would like to bump this as it makes installing the tool from source behave poorly per golang's modules specifications. If you follow the instructions and run:
go install github.com/awslabs/amazon-ecr-credential-helper/ecr-login/cli/docker-credential-ecr-login@latest
You then get a version like:
$ docker-credential-ecr-login version
(github.com/docker/docker-credential-helpers) v0.0.0+unknown
Whereas if the tag was ecr-login/v0.7.1
instead of v0.7.1
it would install the correct version
I found that some packages, say
github.com/awslabs/amazon-ecr-credential-helper/ecr-login/api
, are placed in submodulegithub.com/awslabs/amazon-ecr-credential-helper/ecr-login
instead of root module.However, it seems that submodule
github.com/awslabs/amazon-ecr-credential-helper/ecr-login
is not tagged. According to go docs, submodule should be tagged likerelative-path-to-root/vX.X.X
. At now, when trying to import packagegithub.com/awslabs/amazon-ecr-credential-helper/ecr-login/api
, downstream would depends on pseudo-version of modulegithub.com/awslabs/amazon-ecr-credential-helper/ecr-login
.I think it is not very readable and difficult to upgrade. This is not conductive to version control either. So, I propose whether it is possible to tag submodule properly. For example,
ecr-login/v0.0.1
,ecr-login/v0.6.0
etc, so that other project can use tag to import this module in go.mod.