1
0
Fork 0
mirror of https://github.com/xHyroM/void-packages.git synced 2024-11-22 14:41:04 +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 fi
done done
go_package=${go_package:-$go_import_path} : ${go_package:=$go_import_path}
# Build using Go modules if there's a go.mod file # Build using Go modules if there's a go.mod file
if [ "${go_mod_mode}" != "off" ] && [ -f go.mod ]; then if [ "${go_mod_mode}" != "off" ] && [ -f go.mod ]; then
@ -60,6 +60,12 @@ do_build() {
fi 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() { do_install() {
for f in ${GOPATH}/bin/* ${GOPATH}/bin/**/*; do for f in ${GOPATH}/bin/* ${GOPATH}/bin/**/*; do
if [ -f "$f" ] && [ -x "$f" ]; then if [ -f "$f" ] && [ -x "$f" ]; then