Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 790851 - go-module.eclass: _go-module_src_unpack_gosum applies default unpack behavior to all files in SRC_URI which are not derived from EGO_SUM
Summary: go-module.eclass: _go-module_src_unpack_gosum applies default unpack behavior...
Status: IN_PROGRESS
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Eclasses (show other bugs)
Hardware: All All
: Normal normal (vote)
Assignee: William Hubbs
URL: https://archives.gentoo.org/gentoo-de...
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2021-05-18 18:28 UTC by Zac Medico
Modified: 2021-05-19 20:48 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Zac Medico gentoo-dev 2021-05-18 18:28:19 UTC
I encountered this issue in the sys-cluster/k3s ebuilds, where I use a k3s_unpack_filter function to prevent the  _go-module_src_unpack_gosum function from unpacking tarballs which are not intended to be unpacked:

k3s_unpack_filter() {
	grep -v -F \
		-e "traefik-${K3S_TRAEFIK_VERSION}.tgz" \
		-e "k3s-cni-plugins-${K3S_CNIPLUGINS_VERSION}.tar.gz"
}

src_unpack() {
	read -d '' A < <(printf -- '%s\n' ${A} | k3s_unpack_filter)
	go-module_src_unpack
}