1
0
Fork 0
mirror of https://github.com/xHyroM/void-packages.git synced 2024-12-22 20:21:05 +01:00
This commit is contained in:
github-actions[bot] 2024-09-12 01:00:29 +00:00
parent ca6f64c88d
commit 29a9bdce03

View file

@ -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