build-style/go: add support for build tags

This commit is contained in:
Dominik Honnef 2016-03-16 18:45:31 +01:00
parent 3785b8ebb3
commit 795a645de4
2 changed files with 3 additions and 1 deletions

View File

@ -1077,6 +1077,8 @@ The following variables influence how Go packages are built:
will be downloaded with `go get`. Otherwise, a distfile has to be
provided. This option should only be used with `-git` (or similar)
packages; using a versioned distfile is preferred.
- `go_build_tags`: An optional, space-separated list of build tags to
pass to Go.
<a id="pkgs_haskell"></a>
### Haskell packages

View File

@ -10,7 +10,7 @@ do_build() {
fi
go_package=${go_package:-$go_import_path}
go get -x ${go_package}
go get -x -tags "${go_build_tags}" ${go_package}
}
do_install() {