Closed sudo-bmitch closed 1 year ago
Thank you to @jonjohnsonjr for spotting my error. There was a "v" in the version injected to the go build. Dropping that now works:
CGO_ENABLED=0 go build -ldflags="-s -w -X github.com/GoogleCloudPlatform/docker-credential-gcr/config.Version=2.1.8" .
While debugging an auth issue with regclient, I'm not able to reproduce the released binary:
First, setup an environment in a container to minimize externalities:
Then build the binary from source:
Attempt to copy an image:
Curl the released binary and retry:
As best I can tell, I've built the binary identically:
Is there something I'm missing to build a binary that can be used similar to the released binary.