Revert "build-style/go: use XBPS_MAKEJOBS to control parallelism"

This reverts commit 12b15b0d72.

I thought the conversation was already resolved, my fault.

Reverting until this gets resolved.
This commit is contained in:
Juan RP 2019-06-25 23:05:17 +02:00
parent f0562f5365
commit f36f3fe28f
No known key found for this signature in database
GPG Key ID: AF19F6CB482F9368
2 changed files with 2 additions and 7 deletions

View File

@ -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 template variables influence how Go packages are built:
The following 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,11 +1479,6 @@ The following template 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().

View File

@ -33,7 +33,7 @@ do_build() {
# default behavior.
go_mod_mode=
fi
go install -p "$XBPS_MAKEJOBS" -mod="${go_mod_mode}" -x -tags "${go_build_tags}" -ldflags "${go_ldflags}" ${go_package}
go install -mod="${go_mod_mode}" -x -tags "${go_build_tags}" -ldflags "${go_ldflags}" ${go_package}
else
# Otherwise, build using GOPATH
go get -x -tags "${go_build_tags}" -ldflags "${go_ldflags}" ${go_package}