Skip to content

Override platform with GOOS and GOARCH - #1618

Merged
leaanthony merged 8 commits into
masterfrom
bugfix/env-var-override
Jul 21, 2022
Merged

leaanthony merged 8 commits into
masterfrom
bugfix/env-var-override

Conversation

@leaanthony

Copy link
Copy Markdown
Member

Whilst -platform worked as expected, the GOOS and GOARCH flags were not overriding the platform.
Fix for #1610

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Jul 20, 2022 •

Copy link
Copy Markdown

Deploying with  Cloudflare Pages  Cloudflare Pages

Latest commit: 0303425
Status:⚡️  Build in progress...

View logs

@stffabi stffabi left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I suspect we loose the ability to do multi platform builds in a correct way.

Should we either allow setting the GOOS/GOARCH env vars or the platform string, but not both?

@leaanthony
leaanthony requested a review from stffabi July 21, 2022 10:52

@stffabi stffabi left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM 👍

@leaanthony

Copy link
Copy Markdown
Member Author

Thanks heaps for reviewing. Great catches! 🔥

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.

2 participants