common/build-style/go.sh: use -modcacherw

makes sure the go mod cache is not read only and ./xbps-src zap can
properly remove it
This commit is contained in:
Michal Vasilek 2023-04-05 20:33:25 +02:00
parent 2c0746cb90
commit cb9e4c02e6
1 changed files with 1 additions and 1 deletions

View File

@ -40,7 +40,7 @@ do_build() {
# default behavior. # default behavior.
go_mod_mode= go_mod_mode=
fi fi
go install -p "$XBPS_MAKEJOBS" -mod="${go_mod_mode}" -x -tags "${go_build_tags}" -ldflags "${go_ldflags}" ${go_package} go install -p "$XBPS_MAKEJOBS" -mod="${go_mod_mode}" -modcacherw -x -tags "${go_build_tags}" -ldflags "${go_ldflags}" ${go_package}
else else
# Otherwise, build using GOPATH # Otherwise, build using GOPATH
go get -p "$XBPS_MAKEJOBS" -x -tags "${go_build_tags}" -ldflags "${go_ldflags}" ${go_package} go get -p "$XBPS_MAKEJOBS" -x -tags "${go_build_tags}" -ldflags "${go_ldflags}" ${go_package}