1 |
commit: c7e6f5f0e1bd8c9c7f2ac4f10660fcaac525631d |
2 |
Author: William Hubbs <williamh <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Sep 1 16:04:56 2021 +0000 |
4 |
Commit: William Hubbs <williamh <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Sep 1 16:04:56 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c7e6f5f0 |
7 |
|
8 |
go-module.eclass: drop --mod=readonly from GOFLAGS |
9 |
|
10 |
As of go 1.16, --mod=readonly is the default, so we don't need to |
11 |
specify it. |
12 |
https://golang.org/ref/mod#build-commands |
13 |
https://golang.org/doc/go1.16 |
14 |
|
15 |
Signed-off-by: William Hubbs <williamh <AT> gentoo.org> |
16 |
|
17 |
eclass/go-module.eclass | 4 +--- |
18 |
1 file changed, 1 insertion(+), 3 deletions(-) |
19 |
|
20 |
diff --git a/eclass/go-module.eclass b/eclass/go-module.eclass |
21 |
index 053861a1a18..d51b8279f97 100644 |
22 |
--- a/eclass/go-module.eclass |
23 |
+++ b/eclass/go-module.eclass |
24 |
@@ -75,9 +75,7 @@ export GOCACHE="${T}/go-build" |
25 |
# The following go flags should be used for all builds. |
26 |
# -v prints the names of packages as they are compiled |
27 |
# -x prints commands as they are executed |
28 |
-# -mod=readonly do not update go.mod/go.sum but fail if updates are needed |
29 |
-# -mod=vendor use the vendor directory instead of downloading dependencies |
30 |
-export GOFLAGS="-v -x -mod=readonly" |
31 |
+export GOFLAGS="-v -x" |
32 |
|
33 |
# Do not complain about CFLAGS etc since go projects do not use them. |
34 |
QA_FLAGS_IGNORED='.*' |