eclass/golang-vcs-snapshot: Sync with Gentoo

It's from Gentoo commit c481cf29fcea1af132e07064b91237353298d49b.
This commit is contained in:
Krzesimir Nowak 2024-08-02 16:04:31 +02:00
parent 9441895a7e
commit 87a3f1cad3

View File

@ -1,10 +1,10 @@
# Copyright 1999-2023 Gentoo Authors
# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
# @ECLASS: golang-vcs-snapshot.eclass
# @MAINTAINER:
# William Hubbs <williamh@gentoo.org>
# @SUPPORTED_EAPIS: 6 7
# @SUPPORTED_EAPIS: 7
# @PROVIDES: golang-base
# @BLURB: eclass to unpack VCS snapshot tarballs for Go software
# @DEPRECATED: go-module.eclass
@ -45,14 +45,13 @@
# and add the vendored tarballs to ${WORKDIR}/src/${EGO_PN}/vendor
case ${EAPI} in
6|7) ;;
7) ;;
*) die "${ECLASS}: EAPI ${EAPI:-0} not supported" ;;
esac
if [[ -z ${_GOLANG_VCS_SNAPSHOT_ECLASS} ]]; then
_GOLANG_VCS_SNAPSHOT_ECLASS=1
# Flatcar: Keep this change until upstream has merged https://github.com/gentoo/gentoo/pull/33539
inherit golang-base go-env
# @ECLASS_VARIABLE: EGO_VENDOR
@ -120,7 +119,6 @@ golang-vcs-snapshot_src_unpack() {
done
fi
# Flatcar: Keep this change until upstream has merged https://github.com/gentoo/gentoo/pull/33539
go-env_set_compile_environment
}