Are cross-platform builds possible using the Bud CLI?
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 5.6k
- Forks
- 175
- PR merge metrics
- No merged PRs in 30d
Description
Not a biggie, but I'd sometimes build Linux apps locally on my Mac, and throw them directly on one of my spare machines. It's just a time saver when I don't need to bother with setting up a build and deployment pipeline.
Anyway, while the standard `go` command allows cross-platform building, the following has no effect in Bud:
```bash
GOOS=linux GOARCH=amd64 bud build
```
It will simply produce a Mac (in my case) binary and ignore the options.
Out of curiosity, will this feature be supported, or is it preferable to build the Linux app on the target machine?
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the `bud build` CLI entry point and trace how it invokes the standard `go` command. Check whether GOOS and GOARCH are propagated, then verify that a Linux amd64 build can be produced from macOS and that the resulting binary matches the requested target.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- go
- Domain
- build-system, cli
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100