mirror of
https://github.com/flatcar/scripts.git
synced 2025-08-16 01:16:59 +02:00
eclass/golang-base: Sync with gentoo
It's from gentoo commit 7f8297d319da8a7fe6680217ad8362b46ac1c95a.
This commit is contained in:
parent
37365a383c
commit
71e54186fd
@ -1,10 +1,11 @@
|
|||||||
# Copyright 1999-2018 Gentoo Foundation
|
# Copyright 1999-2021 Gentoo Authors
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
# @ECLASS: golang-base.eclass
|
# @ECLASS: golang-base.eclass
|
||||||
# @MAINTAINER:
|
# @MAINTAINER:
|
||||||
# William Hubbs <williamh@gentoo.org>
|
# William Hubbs <williamh@gentoo.org>
|
||||||
# @SUPPORTED_EAPIS: 5 6 7
|
# @SUPPORTED_EAPIS: 5 6 7
|
||||||
|
# @DEPRECATED: go-module.eclass
|
||||||
# @BLURB: Eclass that provides base functions for Go packages.
|
# @BLURB: Eclass that provides base functions for Go packages.
|
||||||
# @DESCRIPTION:
|
# @DESCRIPTION:
|
||||||
# This eclass provides base functions for software written in the Go
|
# This eclass provides base functions for software written in the Go
|
||||||
@ -15,7 +16,7 @@ case "${EAPI:-0}" in
|
|||||||
5|6|7)
|
5|6|7)
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
die "${ECLASS}: Unsupported eapi (EAPI=${EAPI})"
|
die "${ECLASS}: Unsupported EAPI (EAPI=${EAPI})"
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
@ -36,6 +37,9 @@ QA_FLAGS_IGNORED='.*'
|
|||||||
# Upstream does not support stripping go packages
|
# Upstream does not support stripping go packages
|
||||||
RESTRICT="strip"
|
RESTRICT="strip"
|
||||||
|
|
||||||
|
# force GO111MODULE to be auto for bug https://bugs.gentoo.org/771129
|
||||||
|
export GO111MODULE=auto
|
||||||
|
|
||||||
# @ECLASS-VARIABLE: EGO_PN
|
# @ECLASS-VARIABLE: EGO_PN
|
||||||
# @REQUIRED
|
# @REQUIRED
|
||||||
# @DESCRIPTION:
|
# @DESCRIPTION:
|
||||||
|
Loading…
Reference in New Issue
Block a user