One possible alternative is to replace the 'ignore' tag with 'example(s)' so at least 'go get -d -tags=example' could be used to retrieve all the dependencies. ('ignore' wouldn't work because too many side effects)
-s
sent from my droid
Some libraries have example programs in the same repo. The shiny code
has an example to demonstrate the basic shiny API, but I don't want
"go install golang.org/x/exp/shiny/..." to put a "basic" program into
my $GOPATH/bin directory. I just want to install the library packages.
Under golang.org/x and github.com/google, the convention so far, as
far as I am aware, has been to add a build tag comment like this:
// +build ignore
//
On Wed, Apr 6, 2016 at 10:00 AM, Andrew Gerrand <a...@golang.org> wrote:
> or "GOBIN=. go install" when building examples
$ GOBIN=. go install golang.org/x/exp/shiny/example/basic
cannot install, GOBIN must be an absolute path
I'm assuming that that's by design.
I want to install the libraries, without
installing the examples.