FAQ

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?
"go build -i" almost works, although I'd rather "go run" than "go
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.

Search Discussions

Discussion Posts

Previous

Follow ups

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 17 of 22 | next ›
Discussion Overview
groupgolang-dev @
categoriesgo
postedApr 2, '16 at 2:42a
activeMay 2, '16 at 11:45a
posts22
users12
websitegolang.org

People

Translate

site design / logo © 2021 Grokbase