sharlatan pushed a commit to branch go-team
in repository guix.
commit a1cf6f78fd511609f192660945e24538b58a460c
Author: Sharlatan Hellseher <[email protected]>
AuthorDate: Wed Jul 24 20:51:21 2024 +0100
gnu: go-github-com-prometheus-common: Remove submodules.
Removing Golang submodules which need to be packed as separate
packages. Each of them has it's own dependencies defined in go.mod and
causing cycling with other packages if distributed with
go-github-com-prometheus-common.
* gnu/packages/golang.scm (go-github-com-prometheus-common) [snippet]:
Remove submodules.
Change-Id: Ic586cb6b653fd932dad402d700a0c3addd542d99
---
gnu/packages/golang.scm | 12 +++++++++++-
1 file changed, 11 insertions(+), 1 deletion(-)
diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm
index 2bf4da8eba..518bda7299 100644
--- a/gnu/packages/golang.scm
+++ b/gnu/packages/golang.scm
@@ -7361,7 +7361,17 @@ formatting information, rather than the current locale
name.")
(file-name (git-file-name name version))
(sha256
(base32
- "006y6mlxglr2xzmdqxl5bwh899whfx1prcgjai7qhhs5ys5dspy5"))))
+ "006y6mlxglr2xzmdqxl5bwh899whfx1prcgjai7qhhs5ys5dspy5"))
+ (modules '((guix build utils)))
+ (snippet
+ #~(begin
+ ;; Submodules with their own go.mod files and packed as
+ ;; separated packages:
+ ;;
+ ;; - github.com/prometheus/common/assets
+ ;; - github.com/prometheus/common/sigv4
+ (for-each delete-file-recursively
+ (list "assets" "sigv4"))))))
(build-system go-build-system)
(arguments
'(#:import-path "github.com/prometheus/common"