We were talking about different build options for the cli, so I put together what the project would look like if we moved to go build (gb). I thought it would be useful to review and see if it's worth it to make the change.
You can see what I put together here:
https://github.com/lcowell/cli/tree/gb
Pros
- control of dependencies
- reproducible builds
- built in cross platform builds
Cons
- glitch doesn't work (yet)
- tying ourselves to a build tool early in the race
- more directory structure
We'd still need to update the install and build instructions as well as the release build process. I'm sure there's many other things to do.
You can build using:
gb build
Or build for other target using:
env GOOS=linux GOARCH=arm gb build
You can test using:
gb test
We were talking about different build options for the cli, so I put together what the project would look like if we moved to go build (
gb). I thought it would be useful to review and see if it's worth it to make the change.You can see what I put together here:
https://github.com/lcowell/cli/tree/gb
Pros
Cons
We'd still need to update the install and build instructions as well as the release build process. I'm sure there's many other things to do.
You can build using:
gb buildOr build for other target using:
env GOOS=linux GOARCH=arm gb buildYou can test using:
gb test