On Wed, Apr 6, 2016 at 9:46 AM, Austin Clements wrote:
This may be side-stepping the issue, but have you considered "go build -i"
when building the binaries?
This may be side-stepping the issue, but have you considered "go build -i"
when building the binaries?
install", and "go run" doesn't take -i. That might just be a bug with
"go run", though.
The thing with -i though, is that, currently, the main.go files in the
example directories have "+build ignore", so it'd have to be "go build
-i -tags=ignore", but IIUC, that would build and install the dependent
libraries with the ignore tag defined, which isn't what I want.
I think that changing "+build ignore" to "+build example", suggested
earlier, would make "go build -i -tags=example" work. Renaming the
"example" directory to "_example" should also work with a plain "go
build -i", with the previously discussed drawbacks.
--
You received this message because you are subscribed to the Google Groups "golang-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to golang-dev+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.