As it is written in Go, the build process needs a vendor directory to build inside the sandbox.
One thing that has changed from 0.6.0 is that the vendor directory is now released by the upstream maintainer.
Source tarbal and vendor tarball are not extracted to the same directory so not merged together.
I'm trying to remedy this by specifying the src_prepare function and moving the tarball manually but the ebuild seem to fail at the src_unpack function.
Overriding the src_unpack function does nothing.
This issue seem very similar to this one https://forums.gentoo.org/viewtopic-t-1 ... endor.html but nothing helped me there.
Current error:
Current ebuild:go mod verify
go: codeberg.org/emersion/go-scfg@v0.1.0: Get "https://proxy.golang.org/codeberg.org/e ... v0.1.0.mod": dial tcp: lookup proxy.golang.org on 100.64.0.55:53: dial udp 100.64.0.55:53: connect: network is unreachable"
Code: Select all
# Copyright 2023-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit go-module
DESCRIPTION="CLI tool for sourcehut"
HOMEPAGE="https://sr.ht/~xenrox/hut/"
SRC_URI="https://git.sr.ht/~xenrox/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
SRC_URI+=" https://git.sr.ht/~xenrox/${PN}/refs/download/v${PV}/${PN}-v${PV}-vendor.tar.xz -> ${P}-vendor.tar.xz"
S="${WORKDIR}/hut-v${PV}"
LICENSE="AGPL-3"
SLOT="0"
KEYWORDS="~amd64"
BDEPEND="app-text/scdoc"
src_prepare() {
mv ../hut/vendor .
}
src_compile() {
ego build
emake doc/hut.1 completions
}
src_install() {
dobin hut
emake install PREFIX="${EPREFIX}/usr" DESTDIR="${D}"
}


