summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWilliam Hubbs <williamh@gentoo.org>2021-09-01 11:04:56 -0500
committerWilliam Hubbs <williamh@gentoo.org>2021-09-01 11:04:56 -0500
commitc7e6f5f0e1bd8c9c7f2ac4f10660fcaac525631d (patch)
tree23d44c054cf01afad92aa2403832c3caaca128e7 /eclass/go-module.eclass
parentsci-geosciences/gpxsee: bump to 9.5 (diff)
downloadgentoo-c7e6f5f0e1bd8c9c7f2ac4f10660fcaac525631d.tar.gz
gentoo-c7e6f5f0e1bd8c9c7f2ac4f10660fcaac525631d.tar.bz2
gentoo-c7e6f5f0e1bd8c9c7f2ac4f10660fcaac525631d.zip
go-module.eclass: drop --mod=readonly from GOFLAGS
As of go 1.16, --mod=readonly is the default, so we don't need to specify it. https://golang.org/ref/mod#build-commands https://golang.org/doc/go1.16 Signed-off-by: William Hubbs <williamh@gentoo.org>
Diffstat (limited to 'eclass/go-module.eclass')
-rw-r--r--eclass/go-module.eclass4
1 files changed, 1 insertions, 3 deletions
diff --git a/eclass/go-module.eclass b/eclass/go-module.eclass
index 053861a1a180..d51b8279f97c 100644
--- a/eclass/go-module.eclass
+++ b/eclass/go-module.eclass
@@ -75,9 +75,7 @@ export GOCACHE="${T}/go-build"
# The following go flags should be used for all builds.
# -v prints the names of packages as they are compiled
# -x prints commands as they are executed
-# -mod=readonly do not update go.mod/go.sum but fail if updates are needed
-# -mod=vendor use the vendor directory instead of downloading dependencies
-export GOFLAGS="-v -x -mod=readonly"
+export GOFLAGS="-v -x"
# Do not complain about CFLAGS etc since go projects do not use them.
QA_FLAGS_IGNORED='.*'