Skip to content

Commit

Permalink
Remove credentialprovider patch check on build-binaries
Browse files Browse the repository at this point in the history
Signed-off-by: Joao Pereira <joaod@vmware.com>
  • Loading branch information
joaopapereira committed Sep 2, 2022
1 parent 17a7ea2 commit eaf8aba
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions hack/build-binaries.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,17 +12,6 @@ go fmt ./cmd/... ./pkg/... ./test/...
go mod vendor
go mod tidy

# related to https://github.com/vmware-tanzu/carvel-imgpkg/pull/255
# there doesn't appear to be a simple way to disable the defaultDockerConfigProvider
# Having defaultDockerConfigProvider enabled by default results in the imgpkg auth ordering not working correctly
# Specifically, the docker config.json is loaded before cli flags (and maybe even IaaS metadata services)
git apply --ignore-space-change --ignore-whitespace ./hack/patch-k8s-pkg-credentialprovider.patch

git diff --exit-code || {
echo 'found changes in the project. when expected none. exiting'
exit 1
}

# makes builds reproducible
export CGO_ENABLED=0
LDFLAGS="-X github.com/vmware-tanzu/carvel-imgpkg/pkg/imgpkg/cmd.Version=$VERSION"
Expand Down

0 comments on commit eaf8aba

Please sign in to comment.