diff options
| author | 2019-06-18 19:37:27 -0700 | |
|---|---|---|
| committer | 2019-06-25 22:04:46 +0200 | |
| commit | 12b15b0d7235a7dec75e40871fe360b28b111882 (patch) | |
| tree | cc0f6fb9235ed0f367c224535281135e75aa036d /Manual.md | |
| parent | New package: fldigi-4.1.03 (diff) | |
build-style/go: use XBPS_MAKEJOBS to control parallelism
Diffstat (limited to 'Manual.md')
| -rw-r--r-- | Manual.md | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/Manual.md b/Manual.md index ec5206bba58..7f6f23de59e 100644 --- a/Manual.md +++ b/Manual.md @@ -1460,7 +1460,7 @@ Go packages should be built with the `go` build style, if possible. The `go` build style takes care of downloading Go dependencies and setting up cross compilation. -The following variables influence how Go packages are built: +The following template variables influence how Go packages are built: - `go_import_path`: The import path of the package included in the distfile, as it would be used with `go get`. For example, GitHub's @@ -1479,6 +1479,11 @@ The following variables influence how Go packages are built: accepted by `go build -mod MODE`. Defaults to `vendor` if there's a vendor directory, otherwise `default`. +The following environment variables influence how Go packages are built: + +- `XBPS_MAKEJOBS`: Value passed to the `-p` flag of `go install`, to + control the parallelism of the Go compiler. + Occasionally it is necessary to perform operations from within the Go source tree. This is usually needed by programs using go-bindata or otherwise preping some assets. If possible do this in pre_build(). |
