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