From a1cf6f78fd511609f192660945e24538b58a460c Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Wed, 24 Jul 2024 20:51:21 +0100 Subject: 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(-) (limited to 'gnu/packages/golang.scm') 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 @@ (define-public go-github-com-prometheus-common (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" -- cgit v1.2.3