gox icon indicating copy to clipboard operation
gox copied to clipboard

Ability to build a single .go file

Open sathishvj opened this issue 11 years ago • 5 comments

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.

sathishvj avatar Dec 04 '13 07:12 sathishvj

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.

kyleconroy avatar Dec 08 '13 01:12 kyleconroy

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.

sathishvj avatar Dec 08 '13 03:12 sathishvj

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 .

kyleconroy avatar Dec 08 '13 03:12 kyleconroy

Patch: https://github.com/mitchellh/gox/pull/8

xsleonard avatar Dec 28 '13 07:12 xsleonard

any update on merging the patch in , this is a major missing feature.

jijojv avatar Jun 22 '14 22:06 jijojv