mirror of
https://github.com/flatcar/scripts.git
synced 2025-08-15 08:56:58 +02:00
eclass/go-module: Sync with Gentoo
It's from Gentoo commit c8af7eb1285a2683460618b71e2e9a14ca6badcd.
This commit is contained in:
parent
8f1ed8d4c9
commit
6d2ff4eaa4
@ -322,7 +322,7 @@ go-module_set_globals() {
|
||||
# It sets up the go module proxy in the appropriate location.
|
||||
go-module_setup_proxy() {
|
||||
# shellcheck disable=SC2120
|
||||
debug-print-function "${FUNCNAME}" "$@"
|
||||
debug-print-function ${FUNCNAME} "$@"
|
||||
|
||||
if [[ ! ${_GO_MODULE_SET_GLOBALS_CALLED} ]]; then
|
||||
die "go-module_set_globals must be called in global scope"
|
||||
@ -401,7 +401,7 @@ go-module_src_unpack() {
|
||||
# directory correctly.
|
||||
_go-module_src_unpack_gosum() {
|
||||
# shellcheck disable=SC2120
|
||||
debug-print-function "${FUNCNAME}" "$@"
|
||||
debug-print-function ${FUNCNAME} "$@"
|
||||
|
||||
if [[ ! ${_GO_MODULE_SET_GLOBALS_CALLED} ]]; then
|
||||
die "go-module_set_globals must be called in global scope"
|
||||
@ -472,7 +472,7 @@ _go-module_gosum_synthesize_files() {
|
||||
# the package, without actually building it yet.
|
||||
_go-module_src_unpack_verify_gosum() {
|
||||
# shellcheck disable=SC2120
|
||||
debug-print-function "${FUNCNAME}" "$@"
|
||||
debug-print-function ${FUNCNAME} "$@"
|
||||
|
||||
if [[ ! ${_GO_MODULE_SET_GLOBALS_CALLED} ]]; then
|
||||
die "go-module_set_globals must be called in global scope"
|
||||
@ -499,7 +499,7 @@ _go-module_src_unpack_verify_gosum() {
|
||||
# This function is used in live ebuilds to vendor the dependencies when
|
||||
# upstream doesn't vendor them.
|
||||
go-module_live_vendor() {
|
||||
debug-print-function "${FUNCNAME}" "$@"
|
||||
debug-print-function ${FUNCNAME} "$@"
|
||||
|
||||
# shellcheck disable=SC2086
|
||||
has live ${PROPERTIES} ||
|
||||
|
Loading…
Reference in New Issue
Block a user