You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As developer trying to use docker-credential-ecr-login, I tried installing using go install
go install github.com/awslabs/amazon-ecr-credential-helper/ecr-login/cli/[email protected]
It results in the following error,
go: github.com/awslabs/amazon-ecr-credential-helper/ecr-login/cli/[email protected]: module github.com/awslabs/[email protected] found, but does not contain package github.com/awslabs/amazon-ecr-credential-helper/ecr-login/cli/docker-credential-ecr-login
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:
It is my understanding that you have to give the directory that contains go.mod:
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:
go: github.com/awslabs/amazon-ecr-credential-helper/[email protected]: module github.com/awslabs/[email protected] found, but does not contain package github.com/awslabs/amazon-ecr-credential-helper/ecr-login
This is with golang 1.20.6.
My suspicion is that go.mod and main.go need to be located in the same directory, but I certainly don't fully understand how go install resolves its arguments; the help output is confusing.
/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: