sharlatan pushed a commit to branch go-team
in repository guix.

commit 560d0d95704f35e44af38226574a6d8e806c3d19
Author: Sharlatan Hellseher <[email protected]>
AuthorDate: Sun Dec 29 16:15:57 2024 +0000

    gnu: go-github-com-expr-lang-expr: Fix build.
    
    * gnu/packages/golang-xyz.scm (go-github-com-expr-lang-expr) [source]
    <snippet>: Delete submodules with their own go.mod files which need to
    be packed separately.
    
    Change-Id: Ie99734135bf8fdc4525b856d232485501cdd12d7
---
 gnu/packages/golang-xyz.scm | 11 ++++++++++-
 1 file changed, 10 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm
index ea55fafa47..cc364d10d6 100644
--- a/gnu/packages/golang-xyz.scm
+++ b/gnu/packages/golang-xyz.scm
@@ -4045,7 +4045,16 @@ more similar API to regexp."))))
              (commit (string-append "v" version))))
        (file-name (git-file-name name version))
        (sha256
-        (base32 "08p7gcxm7psgn1rzhhy2s2va59ssy77x8wd706gdp2pif7wln883"))))
+        (base32 "08p7gcxm7psgn1rzhhy2s2va59ssy77x8wd706gdp2pif7wln883"))
+       (modules '((guix build utils)))
+       (snippet
+        #~(begin
+            ;; Submodules with their own go.mod files and packaged separately:
+            ;;
+            ;; - github.com/expr-lang/expr/repl
+            ;; - github.com/expr-lang/expr/debug
+            (for-each delete-file-recursively
+                      (list "repl" "debug"))))))
     (build-system go-build-system)
     (arguments
      (list

Reply via email to