-
Notifications
You must be signed in to change notification settings - Fork 339
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 docker-credential-ecr-login using go install
#487
Comments
It is my understanding that you have to give the directory that contains So, for instance: go install github.com/santhosh-tekuri/jsonschema/cmd/[email protected] works. However, go install "github.com/awslabs/amazon-ecr-credential-helper/[email protected] does not work, either:
This is with golang 1.20.6. My suspicion is that |
In the meantime, I do this as part of my Docker build: # renovate: datasource=github-tags depName=awslabs/amazon-ecr-credential-helper versioning=semver
ENV AWS_ECR_CRED_HELPER_VERSION="v0.7.1"
RUN apk add --no-cache wget \
&& wget -nv -O /go/bin/docker-credential-ecr-login \
https://amazon-ecr-credential-helper-releases.s3.us-east-2.amazonaws.com/${AWS_ECR_CRED_HELPER_VERSION#v}/linux-amd64/docker-credential-ecr-login \
&& chmod +x /go/bin/docker-credential-ecr-login |
Issue persists with golang 1.21.5. |
/question
As developer trying to use
docker-credential-ecr-login
, I tried installing usinggo install
It results in the following error,
If I do
go install github.com/awslabs/amazon-ecr-credential-helper/ecr-login/cli/docker-credential-ecr-login@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: