mirror of
https://gitlab.alpinelinux.org/alpine/abuild.git
synced 2024-12-30 10:52:06 +00:00
abuild: warn on go packages without net option
This commit is contained in:
parent
21b5a2298d
commit
141da52d19
@ -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) || \
|
||||
|
Loading…
Reference in New Issue
Block a user