Skip to content
This repository has been archived by the owner on Oct 31, 2023. It is now read-only.

Ability to build a single .go file #5

Open
sathishvj opened this issue Dec 4, 2013 · 5 comments
Open

Ability to build a single .go file #5

sathishvj opened this issue Dec 4, 2013 · 5 comments

Comments

@sathishvj
Copy link

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.

@kyleconroy
Copy link

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.

@sathishvj
Copy link
Author

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.

@kyleconroy
Copy link

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 #4#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//issues/5#issuecomment-30073900
.

@xsleonard
Copy link

Patch: #8

@jijojv
Copy link

jijojv commented Jun 22, 2014

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants