mirror of
https://github.com/flatcar/scripts.git
synced 2025-08-19 05:21:23 +02:00
coreos-devel/mantle: Specify the Go module download mode
Setting -mod=vendor must be done in the live ebuild for cros_workon but not the released version, so set it in the conditional block. That variable must be set unconditionally after the next mantle version is tagged. Also stop building arm64 kolet to save a bit of time.
This commit is contained in:
parent
d1ae256695
commit
dd931a70be
@ -8,6 +8,7 @@ CROS_WORKON_REPO="git://github.com"
|
||||
COREOS_GO_PACKAGE="github.com/coreos/mantle"
|
||||
|
||||
if [[ "${PV}" == 9999 ]]; then
|
||||
COREOS_GO_MOD="vendor"
|
||||
KEYWORDS="~amd64 ~arm64"
|
||||
else
|
||||
CROS_WORKON_COMMIT="e7983fc86fae0b77e24611c6f96da3765dc81d1d" # v0.12.0
|
||||
@ -37,7 +38,7 @@ src_compile() {
|
||||
go_build "${COREOS_GO_PACKAGE}/cmd/${cmd}"
|
||||
done
|
||||
|
||||
for a in amd64 arm64; do
|
||||
for a in amd64; do
|
||||
mkdir -p "${GOBIN}/${a}"
|
||||
CGO_ENABLED=0 GOBIN="${GOBIN}/${a}" GOARCH=${a} go_build "${COREOS_GO_PACKAGE}/cmd/kolet"
|
||||
done
|
||||
@ -52,7 +53,7 @@ src_install() {
|
||||
dobin "${GOBIN}"/"${cmd}"
|
||||
done
|
||||
|
||||
for a in amd64 arm64; do
|
||||
for a in amd64; do
|
||||
exeinto /usr/lib/kola/${a}
|
||||
doexe "${GOBIN}/${a}/kolet"
|
||||
done
|
||||
|
@ -10,4 +10,4 @@ RDEPEND=>=net-dns/dnsmasq-2.72[dhcp,ipv6]
|
||||
REQUIRED_USE=go_version_go1_12
|
||||
SLOT=0
|
||||
_eclasses_=coreos-go de47c54270d854e6c918ca20926e8371 coreos-go-depend 688230059f31df4bd9277464f10a6fa5 coreos-go-utils 67004337b6f831adc5f1ff107ee2f157 cros-workon 4ad6e6491a1010ad7c875302b3be18ba eutils 6e6c2737b59a4b982de6fb3ecefd87f8 flag-o-matic 55aaa148741116aa54ad0d80e361818e git-r3 0d4635eeb5a96cd5315597a47eba25c9 multilib b2f01ad412baf81650c23fcf0975fa33 multiprocessing cac3169468f893670dac3e7cb940e045 toolchain-funcs f164325a2cdb5b3ea39311d483988861
|
||||
_md5_=6d5704c73f8009cf106c5643102668fd
|
||||
_md5_=c378690431e393e441a815a1fcb84c93
|
@ -10,4 +10,4 @@ RDEPEND=>=net-dns/dnsmasq-2.72[dhcp,ipv6]
|
||||
REQUIRED_USE=go_version_go1_12
|
||||
SLOT=0
|
||||
_eclasses_=coreos-go de47c54270d854e6c918ca20926e8371 coreos-go-depend 688230059f31df4bd9277464f10a6fa5 coreos-go-utils 67004337b6f831adc5f1ff107ee2f157 cros-workon 4ad6e6491a1010ad7c875302b3be18ba eutils 6e6c2737b59a4b982de6fb3ecefd87f8 flag-o-matic 55aaa148741116aa54ad0d80e361818e git-r3 0d4635eeb5a96cd5315597a47eba25c9 multilib b2f01ad412baf81650c23fcf0975fa33 multiprocessing cac3169468f893670dac3e7cb940e045 toolchain-funcs f164325a2cdb5b3ea39311d483988861
|
||||
_md5_=6d5704c73f8009cf106c5643102668fd
|
||||
_md5_=c378690431e393e441a815a1fcb84c93
|
||||
|
Loading…
x
Reference in New Issue
Block a user