gox
gox copied to clipboard
Ability to build a single .go file
It would be a nice to give a single target go file and have it built for multiple platforms.
E.g. gox hello.go Output: an executable in all conceivable platforms.
You can do this currently just my creating a directory containing a single go file. Or, if hello.go
is the only go file in directory, just calling gox
will working.
The reason it doesn't make sense to point to a single source file is that go build
working with packages, and packages can contain multiple source files.
Yup, that was fixed in issue #4 . This was then raised as a separate issue since go build
can be run on an individual file, and I think it would be useful in places.
Well I'm totally wrong. I didn't think go build worked on single files. I now agree this is something that should work On Dec 7, 2013 7:07 PM, "sathishvj" [email protected] wrote:
Yup, that was fixed in issue #4https://github.com/mitchellh/gox/issues/4. This was then raised as a separate issue since go build can be run on an individual file, and I think it would be useful in places.
— Reply to this email directly or view it on GitHubhttps://github.com/mitchellh/gox/issues/5#issuecomment-30073900 .
Patch: https://github.com/mitchellh/gox/pull/8
any update on merging the patch in , this is a major missing feature.