abuild: warn on go packages without net option

This commit is contained in:
Sertonix 2023-12-18 14:50:27 +01:00 committed by Natanael Copa
parent 21b5a2298d
commit 141da52d19

View File

@ -319,6 +319,9 @@ default_sanitycheck() {
check_secfixes_comment || return 1
makedepends_has 'g++' && ! options_has toolchain && warning "g++ should not be in makedepends"
if makedepends_has 'go' && ! options_has 'net'; then
warning "Go packages require network connection to build. Maybe add 'net' to options"
fi
if ! options_has "!check" && [ -n "$REQUIRE_CHECK" ]; then
(unset check; . "$APKBUILD"; type check >/dev/null 2>&1) || \