mirror of
https://github.com/xHyroM/void-packages.git
synced 2024-12-22 20:21:05 +01:00
build: sync with upstream 2024-09-12 https://github.com/void-linux/void-packages/commit/7a441afd
This commit is contained in:
parent
ca6f64c88d
commit
29a9bdce03
1 changed files with 7 additions and 1 deletions
|
@ -29,7 +29,7 @@ do_build() {
|
|||
fi
|
||||
done
|
||||
|
||||
go_package=${go_package:-$go_import_path}
|
||||
: ${go_package:=$go_import_path}
|
||||
# Build using Go modules if there's a go.mod file
|
||||
if [ "${go_mod_mode}" != "off" ] && [ -f go.mod ]; then
|
||||
|
||||
|
@ -60,6 +60,12 @@ do_build() {
|
|||
fi
|
||||
}
|
||||
|
||||
do_check() {
|
||||
: ${make_check_target:=./...}
|
||||
|
||||
go test -p "$XBPS_MAKEJOBS" -v -tags "${go_build_tags}" -ldflags "${go_ldflags}" ${make_check_args} ${make_check_target}
|
||||
}
|
||||
|
||||
do_install() {
|
||||
for f in ${GOPATH}/bin/* ${GOPATH}/bin/**/*; do
|
||||
if [ -f "$f" ] && [ -x "$f" ]; then
|
||||
|
|
Loading…
Reference in a new issue