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 }