🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.gentoo.dev
Article #105

[gentoo-dev] [PATCH 3/4] zig.eclass: use --save-exact in zig fetch

#105
From: Violet Purcell
Date: Thu, 05 Nov 2026 17:20
24 lines
2196 bytes
In 0.17.0, zig fetch changed its behavior so that it only copies to
zig-pkgs if the source is in build.zig.zon verbatim. Work around this by
using --save-exact=[name] when fetching.

Signed-off-by: Violet Purcell <vi@vimproved.dev>
---
 eclass/zig.eclass | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/eclass/zig.eclass b/eclass/zig.eclass
index e9aa4e59301c..0fe921c1f362 100644
--- a/eclass/zig.eclass
+++ b/eclass/zig.eclass
@@ -513,7 +513,7 @@ zig_src_unpack() {
 		touch build.zig || die
 		for zig_dep in "${zig_deps[@]}"; do
 			# Hide now-spammy hash from stdout
-			ezig fetch "${DISTDIR}/${zig_dep}" > /dev/null
+			ezig fetch --save-exact="${zig_dep##-*}" "${DISTDIR}/${zig_dep}" > /dev/null
 		done
 
 		# For 0.17 and later:
-- 
2.56.0
Technical Details
Message-ID: <NW9i2-a1Ly-9@gated-at.bofh.it>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!3.eu.feeder.erje.net!feeder.erje.net!news.roellig-ltd.de!open-news-network.org!weretis.net!feeder8.news.weretis.net!news.samoylyk.net!gothmog.csi.it!bofh.it!news.nic.it!robomod
References: <NW9i1-a1Ly-1@gated-at.bofh.it>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!3.eu.feeder.erje.net!feeder.erje.net!news.roellig-ltd.de!open-news-network.org!weretis.net!feeder8.news.weretis.net!news.samoylyk.net!gothmog.csi.it!bofh.it!news.nic.it!robomod
From: Violet Purcell <vi@vimproved.dev>
Newsgroups: linux.gentoo.dev
Subject: [gentoo-dev] [PATCH 3/4] zig.eclass: use --save-exact in zig fetch
Date: Thu, 05 Nov 2026 18:20:02 +0100
Message-ID: <NW9i2-a1Ly-9@gated-at.bofh.it>
References: <NW9i1-a1Ly-1@gated-at.bofh.it>
X-Original-To: gentoo-dev@lists.gentoo.org
X-Envelope-To: gentoo-dev@lists.gentoo.org
X-Envelope-To: gentoo-dev@lists.gentoo.org
X-Mizu-Trace-ID: 52c12770c8d3c8b5
X-Migadu-Flow: FLOW_OUT
X-Mailer: git-send-email 2.56.0
List-ID: Gentoo Linux mail <gentoo-dev.gentoo.org>
Reply-To: gentoo-dev@lists.gentoo.org
X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
Approved: robomod@news.nic.it
Lines: 24
Organization: linux.* mail to news gateway
Sender: robomod@news.nic.it
X-Original-Cc: Violet Purcell <vi@vimproved.dev>
X-Original-Date: Thu,  5 Nov 2026 12:13:13 -0500
X-Original-Message-ID: <20261105171321.147058-3-vi@vimproved.dev>
X-Original-References: <20261105171321.147058-1-vi@vimproved.dev>