Get the thing to build on a windows command line #121
Closed
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
So my first impression was WTH it only builds on Linux? But it turns out it was easy enough to address the fact that some of us are too cheap to buy MacOs computers for our company but not so cheap that we want to not have a widely adopted operating system with an inside track on hardware vendors. Also we don't want to develop with Docker slamming our CPU, plus those guys have gotten super money hungry lately so I don't use them anymore particularly when it's totally unnecessary.
Cross platform is the whole point of GO.
Then I realized that the scaffold files were not being copied out to new projects when run in windows.
You need to use an OS specific path for the target file but you don't need to do that for the embedded FS, so I fixed that too.
Now I can run the build as follows on the windows command line:
go build .
then I can run the executable as
./pushup.exe ../my_project
And it works.