Skip to content

Commit

Permalink
Fix Gitpod CLI arm builds (#20032)
Browse files Browse the repository at this point in the history
  • Loading branch information
filiptronicek authored Jul 12, 2024
1 parent 2a8ee81 commit f51eca5
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions components/local-app/BUILD.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,8 @@ const generatePackage = function (goos, goarch, binaryName, mainFile) {
buildCommand: [
"sh",
"-c",
'go build -trimpath -ldflags "-X github.com/gitpod-io/local-app/pkg/constants.GitCommit=${__git_commit} -X github.com/gitpod-io/local-app/pkg/constants.BuildTime=$(date +%s)" -o ' +
binaryName +
" " +
mainFile,
// We need to set GOARCH explicitly here because the `defaultVariant` in `WORKSPACE.yaml` overrides it for the workspace
`GOARCH=${goarch} go build -trimpath -ldflags "-X github.com/gitpod-io/local-app/pkg/constants.GitCommit=\${__git_commit} -X github.com/gitpod-io/local-app/pkg/constants.BuildTime=\$(date +%s)" -o ${binaryName} ${mainFile}`,
],
},
binaryName,
Expand Down

0 comments on commit f51eca5

Please sign in to comment.