Gentoo Archives: gentoo-dev

From: William Hubbs <williamh@g.o>
To: gentoo-dev@l.g.o
Cc: ulm@g.o, William Hubbs <williamh@g.o>
Subject: [gentoo-dev] [PATCH] go-module.eclass: add eapi 8 support
Date: Mon, 05 Jul 2021 20:31:48
Message-Id: 20210705203123.652-1-williamh@gentoo.org
1 Signed-off-by: William Hubbs <williamh@g.o>
2 ---
3 eclass/go-module.eclass | 8 ++++----
4 1 file changed, 4 insertions(+), 4 deletions(-)
5
6 diff --git a/eclass/go-module.eclass b/eclass/go-module.eclass
7 index c11895944cd..053861a1a18 100644
8 --- a/eclass/go-module.eclass
9 +++ b/eclass/go-module.eclass
10 @@ -7,7 +7,7 @@
11 # @AUTHOR:
12 # William Hubbs <williamh@g.o>
13 # Robin H. Johnson <robbat2@g.o>
14 -# @SUPPORTED_EAPIS: 7
15 +# @SUPPORTED_EAPIS: 7 8
16 # @BLURB: basic eclass for building software written as go modules
17 # @DESCRIPTION:
18 # This eclass provides basic settings and functions needed by all software
19 @@ -46,9 +46,9 @@
20 #
21 # @CODE
22
23 -case ${EAPI:-0} in
24 - 7) ;;
25 - *) die "${ECLASS} EAPI ${EAPI} is not supported."
26 +case ${EAPI} in
27 + 7|8) ;;
28 + *) die "${ECLASS}: EAPI ${EAPI:-0} not supported" ;;
29 esac
30
31 if [[ -z ${_GO_MODULE} ]]; then
32 --
33 2.31.1