Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 790851

Summary: 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
Product: Gentoo Linux Reporter: Zac Medico <zmedico>
Component: EclassesAssignee: William Hubbs <williamh>
Status: IN_PROGRESS ---    
Severity: normal CC: sam
Priority: Normal Keywords: PATCH
Version: unspecified   
Hardware: All   
OS: All   
URL: https://archives.gentoo.org/gentoo-dev/message/78f052fe409fbf4806572fae53acffcb
Whiteboard:
Package list:
Runtime testing required: ---

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
}