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:
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.