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

commit a02c38c96672c3994a8dd890624f3ffb9027eada
Author: Sharlatan Hellseher <[email protected]>
AuthorDate: Sat Mar 7 16:43:03 2026 +0000

    gnu: go-github-com-gorilla-csrf: Build with default go, remove vendor.
    
    * gnu/packages/golang-web.scm (go-github-com-gorilla-csrf)[source]
    <snippet>: Remove "vendor" directory.
    [arguments] <go>: Use default for build (go-1.24).
    <test-flags>: Skip one test.
    
    Change-Id: I16d23740c8cb1ec9e6e13c0e384053d48b306c82
---
 gnu/packages/golang-web.scm | 13 ++++++++++---
 1 file changed, 10 insertions(+), 3 deletions(-)

diff --git a/gnu/packages/golang-web.scm b/gnu/packages/golang-web.scm
index 9658138611..2024acda6b 100644
--- a/gnu/packages/golang-web.scm
+++ b/gnu/packages/golang-web.scm
@@ -7151,12 +7151,19 @@ language.")
              (commit (string-append "v" version))))
        (file-name (git-file-name name version))
        (sha256
-        (base32 "0h32npfjir3k0yciisr6ybziv1bshmzw6x3bfkh3i72y3i7nv610"))))
+        (base32 "0h32npfjir3k0yciisr6ybziv1bshmzw6x3bfkh3i72y3i7nv610"))
+       (modules '((guix build utils)))
+       (snippet
+        #~(begin
+            (delete-file-recursively "vendor")))))
     (build-system go-build-system)
     (arguments
      (list
-      #:go go-1.23
-      #:import-path "github.com/gorilla/csrf"))
+      #:import-path "github.com/gorilla/csrf"
+      #:test-flags
+      ;; fatal error: crypto/rand: failed to read random data (see
+      ;; https://go.dev/issue/66821): unexpected EOF
+      #~(list "-skip" "TestGenerateRandomBytes")))
     (propagated-inputs
      (list go-github-com-gorilla-securecookie
            go-github-com-pkg-errors))

Reply via email to