Commit graph

23 commits

Author SHA1 Message Date
Érico Rolim
d9c83dbe8b common/build-style: remove go_get from Go style.
Fix Manual accordingly, and also fix indentation to be compatible with
nearby items.

The two packages which set this variable set it explicitly to "no", so
it wasn't relied upon. From its description, it was recommended only for
git packages, which by default don't fit Void's packaging guidelines.
Removing to avoid anyone coming to rely on it.
2021-02-20 02:01:31 -03:00
Doan Tran Cong Danh
ad5e48816c build-style/go: use glob instead of find 2019-11-16 12:49:56 +01:00
Cameron Nemo
5e35764d3f build-style: use XBPS_MAKEJOBS to set go processes
Clean up some minor unnecessary bashisms, and an unquoted variable.
2019-08-09 23:09:12 +02:00
Juan RP
f36f3fe28f
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.
2019-06-25 23:05:17 +02:00
Cameron Nemo
12b15b0d72 build-style/go: use XBPS_MAKEJOBS to control parallelism 2019-06-25 22:04:46 +02:00
maxice8
1219c3a3dd build-style/go.sh: remove dirname usage 2019-04-14 06:22:09 -03:00
Noel Cower
e892b46432 build-styles: use go install instead of go build.
Fixes multi-package builds.

[ci skip]
2019-01-18 20:18:52 -08:00
Noel Cower
43db1c25dc build-styles: Add support for Go modules.
Adds support for Go modules by detecting a go.mod file and, if
available, using it. In addition, to continue supporting vendoring (and
avoid the need for git on all module builds), if a package includes
a vendor directory, the module mode will switch to vendor mode if not
already set. This will use vendored source code for dependencies
instead of downloading that code again using the descriptions under
go.mod.

go_mod_mode=vendor also skips the go.sum check because nothing is
downloaded that isn't already verified, so this fixes packages with
vendored code that have checksum mismatches due to Go 1.11.4 module
checksum changes.

[ci skip]

Closes: #6036 [via git-merge-pr]
2019-01-02 20:10:56 -08:00
Kyle Nusbaum
422e3461fe Fail go build when $go_import_path is not set
Closes: #2881 [via git-merge-pr]
2018-09-20 22:38:35 -07:00
maxice8
2748e21418
build-style/go.sh: fix indent 2018-09-18 21:41:08 -03:00
Michael Aldridge
92d6e1a521 go build style: move GOPATH creation to do_configure() 2017-11-26 00:41:26 -08:00
Andrea Brancaleoni
34a5df059d build-style: check for Gopkg.{toml,lock} in go 2017-09-17 23:58:52 +02:00
Andrea Brancaleoni
d8f6972200 New package: dep 2017-09-17 23:58:52 +02:00
Dominik Honnef
ef9ff35c38 New package: prometheus-0.18.0 2016-05-03 00:50:02 +02:00
Dominik Honnef
795a645de4 build-style/go: add support for build tags 2016-03-16 18:46:06 +01:00
Dominik Honnef
2bb87e4e07 build-style/go: don't set GOBIN
Go 1.5 doesn't permit our use of GOBIN anymore, breaking
cross-compilation (for details, see
https://github.com/golang/go/issues/9769)

In retrospect, I'm not sure why we set GOBIN in the first place;
GOPATH/bin should suffice.

Closes #2337
2015-08-22 20:58:24 +02:00
Dominik Honnef
504831f121 build-style/go: install cross-built binaries properly 2015-06-12 13:21:32 +02:00
Dominik Honnef
3b617119c7 build-style/go: support building multiple packages 2015-05-04 13:40:44 +02:00
Dominik Honnef
382449cb6e build-style/go: support building subdirectories 2015-04-17 18:27:08 +02:00
Dominik Honnef
a62f407007 set Go env vars in environment
This way, a template can overwrite do_build but still have good defaults
for GOPATH, GOARCH and GOARM.
2015-02-21 14:49:02 +01:00
Dominik Honnef
92c77a10ec create GOPATH in wrksrc 2015-02-21 14:49:02 +01:00
Dominik Honnef
bd75088422 rename import_path to go_import_path 2015-02-21 14:49:02 +01:00
Dominik Honnef
77e8751a93 New build_style: go 2015-02-21 14:49:02 +01:00