Skip to content

Commit

Permalink
fix arch
Browse files Browse the repository at this point in the history
  • Loading branch information
tejal29 committed Dec 22, 2020
1 parent 85ac89a commit bc02ceb
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions acr.patch
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
diff --git a/build/build-config-edit.sh b/build/build-config-edit.sh
index d9fffd0..88b83a9 100755
index d9fffd0..9484fe6 100755
--- a/build/build-config-edit.sh
+++ b/build/build-config-edit.sh
@@ -13,10 +13,9 @@ if [[ ! -d "$sourcedir" ]]; then
@@ -13,10 +13,10 @@ if [[ ! -d "$sourcedir" ]]; then
fi

export CGO_ENABLED=0
-export GOARCH=amd64
+export GOARCH=$TARGETARCH
export GOPATH=$PWD
echo "Go path = $GOPATH"
-for go_os in "linux" "windows" "darwin"
Expand All @@ -15,14 +16,15 @@ index d9fffd0..88b83a9 100755
if [[ "$go_os" == "windows" ]]; then
exe_extension=".exe"
diff --git a/build/build-cred-helper.sh b/build/build-cred-helper.sh
index 0e88315..d016988 100755
index 0e88315..5b6eca5 100755
--- a/build/build-cred-helper.sh
+++ b/build/build-cred-helper.sh
@@ -22,9 +22,8 @@ fi
@@ -22,9 +22,9 @@ fi

export BUILDVERSION=acr-docker-credential-helper`date -u +.%Y%m%d.%H%M%S`
export CGO_ENABLED=0
-export GOARCH=amd64
+export GOARCH=$TARGETARCH
export GOPATH=$PWD
-for go_os in "linux" "windows" "darwin"
+for go_os in "linux"
Expand Down

0 comments on commit bc02ceb

Please sign in to comment.