Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Being able to run custom `go build` command #28
Hi Jingweno, that sounds do-able, I guess I could make a PrependGoCommand setting, but i'm just looking at the source code and so far it looks like godep is simply prepending a 'Godeps/_workspace' dir to the GOPATH variable.
So, I'm wondering if it's enough to do that instead. What do you think?
goxc already allows you to set env variables, as follows (on Unix):
If you wanted to store this setting for future invocations, I would use
What do you think? Does it work for you? Is this sufficient?
OK. Maybe a good compromise would be to make each Env variable into a text/template template, that way you could have cross-platform Separators, PathSeparators, and other env variables.
I'll work on it & let you know .. I think the Env json setting is pretty hopeless without it.
added a commit
Dec 21, 2013
Hi Owen, I've implemented the text/template support.
Here's an example, as used in my own .goxc.json file:
I figured this format would enable to support all platforms and would help prevent platform-specific values from creeping in via -env commandline flags.
The only variables available initially are .PLS (PathListSeparator), .PS (PathSeparator), and .Env.* (all the environment variables in the current environment).
Please get latest and let me know if it's any use to you, or not.