Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix windows s3secrets-helper cross compile #846

Merged

Conversation

DuBistKomisch
Copy link
Contributor

While testing #843 I noticed that this typo breaks building a Windows AMI locally on Linux. Specifically it builds a Linux executable which errors out when buildkite-agent tries to run it during the start of a step:

:llama: Setting up elastic stack environment (v5.3.1)
...
/usr/local/buildkite-aws-stack/plugins/secrets/hooks/environment: line 12: /c/buildkite-agent/bin/s3secrets-helper: cannot execute binary file: Exec format error
🚨 Error: Error setting up bootstrap: The global environment hook exited with status 126

Note that CI works because GOOS is specified correctly in the pipeline env; this make target isn't used.

Copy link
Contributor

@yob yob left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks ❤️

@yob yob merged commit fdee07f into buildkite:master May 12, 2021
@@ -187,4 +187,4 @@ build/s3secrets-helper-linux-arm64:
cd plugins/secrets/s3secrets-helper && GOOS=linux GOARCH=arm64 go build -o ../../../$@

build/s3secrets-helper-windows-amd64.exe:
cd plugins/secrets/s3secrets-helper && GOOD=windows GOARCH=amd64 go build -o ../../../$@
cd plugins/secrets/s3secrets-helper && GOOS=windows GOARCH=amd64 go build -o ../../../$@
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hah oops 🤦🏼‍♂️ 🙃

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants