From 3f58d83f90a06745850812617c49224d1c7e13bb Mon Sep 17 00:00:00 2001 From: Gene Wood Date: Tue, 14 Dec 2021 14:52:36 -0800 Subject: [PATCH] Add details about differing commands before and after go v1.16 --- README.md | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 49a9d73a..afa0aff0 100644 --- a/README.md +++ b/README.md @@ -123,12 +123,19 @@ setx GOPATH %USERPROFILE%\go If you haven't defined the PATH, the command below will fail silently, and running `docker-credential-ecr-login` will output: `command not found` -You can install this via `go install` with: +You can install this via the `go` command line tool. + +For go version 1.16 and newer run : ``` go install github.com/awslabs/amazon-ecr-credential-helper/ecr-login/cli/docker-credential-ecr-login@latest ``` +or with an older version of go run : + +``` +go get -u github.com/awslabs/amazon-ecr-credential-helper/ecr-login/cli/docker-credential-ecr-login +``` If you already have Docker environment, just clone this repository anywhere and run `make docker`. This command builds the binary with Go inside the Docker