• [gentoo-dev] [PATCH] go-module.eclass: drop --mod=readonly from GOFLAGS

    From William Hubbs@21:1/5 to All on Sun Aug 29 03:20:02 2021
    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>
    ---
    eclass/go-module.eclass | 4 +---
    1 file changed, 1 insertion(+), 3 deletions(-)

    diff --git a/eclass/go-module.eclass b/eclass/go-module.eclass
    index 053861a1a18..d51b8279f97 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='.*'
    --
    2.31.1

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From William Hubbs@21:1/5 to William Hubbs on Wed Sep 1 18:10:02 2021
    On Sat, Aug 28, 2021 at 08:12:53PM -0500, William Hubbs wrote:
    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>
    ---
    eclass/go-module.eclass | 4 +---
    1 file changed, 1 insertion(+), 3 deletions(-)

    This is in the tree.

    Thanks,

    William

    -----BEGIN PGP SIGNATURE-----

    iF0EABECAB0WIQTVeuxEZo4uUHOkQAluVBb0MMRlOAUCYS+leQAKCRBuVBb0MMRl OHyvAJ9ivYI68st2xOVe87GUwEGuwLHbJwCeOcxiV0i8s2wSa9QuseZ64Zy4Rtg=
    =d7jO
    -----END PGP SIGNATURE-----

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)