diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2021-09-03 20:56:28 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2021-09-03 20:56:28 +0100 |
commit | fbda87924e6faa7a1919f1a2b4182490bde5ec5c (patch) | |
tree | f3114a4ed212a754756adce027aeef3a4a1a2e2a /eclass/go-module.eclass | |
parent | 3b08f674e3f771b49370edb144dab0958c8cf721 (diff) |
gentoo resync : 03.09.2021
Diffstat (limited to 'eclass/go-module.eclass')
-rw-r--r-- | eclass/go-module.eclass | 21 |
1 files changed, 2 insertions, 19 deletions
diff --git a/eclass/go-module.eclass b/eclass/go-module.eclass index 053861a1a180..d1e81babf1f8 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='.*' @@ -85,7 +83,7 @@ QA_FLAGS_IGNORED='.*' # Go packages should not be stripped with strip(1). RESTRICT+=" strip" -EXPORT_FUNCTIONS src_unpack pkg_postinst +EXPORT_FUNCTIONS src_unpack # @ECLASS-VARIABLE: EGO_SUM # @DESCRIPTION: @@ -417,21 +415,6 @@ go-module_live_vendor() { popd >& /dev/null || die } -# @FUNCTION: go-module_pkg_postinst -# @DESCRIPTION: -# Display a warning about security updates for Go programs. -go-module_pkg_postinst() { - debug-print-function "${FUNCNAME}" "$@" - [[ -n ${REPLACING_VERSIONS} ]] && return 0 - ewarn "${PN} is written in the Go programming language." - ewarn "Since this language is statically linked, security" - ewarn "updates will be handled in individual packages and will be" - ewarn "difficult for us to track as a distribution." - ewarn "For this reason, please update any go packages asap when new" - ewarn "versions enter the tree or go stable if you are running the" - ewarn "stable tree." -} - # @FUNCTION: _go-module_gomod_encode # @DESCRIPTION: # Encode the name(path) of a Golang module in the format expected by Goproxy. |