From 01d1c44615120fbbd05bdef78654550d1a409e69 Mon Sep 17 00:00:00 2001 From: Hilton Chain Date: Fri, 16 Oct 2026 15:44:08 +0800 Subject: [PATCH] build-system: go-vendored: Set file name for vendored Go dependencies. --- modules/rosenthal/build-system/go-vendored.scm | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/modules/rosenthal/build-system/go-vendored.scm b/modules/rosenthal/build-system/go-vendored.scm index 9ba2552..bdb0ab3 100644 --- a/modules/rosenthal/build-system/go-vendored.scm +++ b/modules/rosenthal/build-system/go-vendored.scm @@ -43,15 +43,14 @@ (build-inputs `(,@(if (and source vendor-hash) `(("vendored-go-dependencies" - ,(if (content-hash? vendor-hash) - (origin - (method (go-mod-vendor #:go go)) - (uri source) - (hash vendor-hash)) - (origin - (method (go-mod-vendor #:go go)) - (uri source) - (sha256 vendor-hash))))) + ,(origin + (method (go-mod-vendor #:go go)) + (uri source) + (file-name (string-append name "-vendored-go-dependencies")) + (hash + (if (content-hash? vendor-hash) + vendor-hash + (content-hash vendor-hash)))))) '()) ,@(bag-build-inputs go-bag))) (build (bag-build go-bag))