go get -u github.com/awslabs/amazon-ecr-credential-helper/ecr-login/cli/docker-credential-ecr-Login # <- FAILS
...
go: downloading github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.3.0
go get: installing executables with 'go get' in module mode is deprecated. # <-- issue
Use 'go install pkg@version' instead.
For more information, see https://golang.org/doc/go-get-install-deprecation
or run 'go help get' or 'go help install'.
+ [[ -f /Users/thomas/go/bin/docker-credential-ecr-login ]]
+ sudo mv /Users/thomas/go/bin/docker-credential-ecr-login /opt/go-bins
+ printHead 'Configuring the AWS CLI...'
+ theHead='Configuring the AWS CLI...'