guix_mirror_bot pushed a commit to branch master
in repository guix.

commit e939ab0da9bc16a60abde930cae975a103996197
Author: Sharlatan Hellseher <[email protected]>
AuthorDate: Thu Sep 3 16:27:41 2026 +0100

    gnu: packages: Provide -vet=off option to some go packages.
    
    With go for build set to 1.26 vet introduces more strict checks which
    failed a few older packages without fresh upstream versions. This change
    set -vet=off option to all of them.
    
    * gnu/packages/containers.scm (go-github-com-containerd-stargz-snapshotter):
    [arguments] <test-flags>: Set -vet=off.
    
    * gnu/packages/golang-build.scm (go-github-com-golang-glog): Likewise.
    
    * gnu/packages/golang-check.scm (go-github-com-crossdock-crossdock-go): 
Likewise.
    
    * gnu/packages/golang-compression.scm (go-github-com-dsnet-compress,
    go-github-com-vbatts-tar-split): Likewise.
    
    * gnu/packages/golang-crypto.scm 
(go-torproject-org-pluggable-transports-goptlib): Likewise.
    
    * gnu/packages/golang-vcs.scm (go-github-com-rhysd-actionlint): Likewise.
    
    * gnu/packages/golang-web.scm: (go-github-com-google-go-github-v61,
    go-github-com-google-go-github-v78, go-github-com-google-go-github-v81,
    go-github-com-multiformats-go-multiaddr, go-github-com-pion-dtls-v2,
    go-gitlab-torproject-org-tpo-anti-censorship-pluggable-transports-goptlib,
    go-go-opencensus-io, go-github-com-uber-jaeger-client-go,
    go-github-com-willscott-go-nfs-client, go-go-mau-fi-whatsmeow,
    go-github-com-emersion-go-webdav): Likewise.
    
    * gnu/packages/golang-xyz.scm: (go-github-com-blang-semver-v4,
    go-github-com-jinzhu-copier, go-go-yaml-in-yaml-v4,
    go-github-com-spf13-cobra, go-google-golang-org-appengine,
    go-github-com-hashicorp-go-retryablehttp,
    go-github-com-containerd-cgroups-v3, go-github-com-containers-storage,
    go-cloud-google-com-go-profiler, go-github-com-zeebo-errs,
    go-github-com-go-redis-redis, go-github-com-blang-semver,
    go-go-bug-st-relaxed-semver, go-github-com-segmentio-encoding,
    go-github-com-maypok86-otter-v2, go-github-com-puzpuzpuz-xsync-v4 ):
    Likewise.
    
    * gnu/packages/ipfs.scm (go-github-com-ipfs-boxo): Likewise.
    
    * gnu/packages/networking.scm (yggdrasil): Likewise.
---
 gnu/packages/containers.scm         |  1 +
 gnu/packages/golang-build.scm       |  3 ++-
 gnu/packages/golang-check.scm       |  3 ++-
 gnu/packages/golang-compression.scm |  4 +++-
 gnu/packages/golang-crypto.scm      |  4 +++-
 gnu/packages/golang-vcs.scm         |  3 ++-
 gnu/packages/golang-web.scm         | 37 +++++++++++++++++++++++-----------
 gnu/packages/golang-xyz.scm         | 40 ++++++++++++++++++++++++++-----------
 gnu/packages/ipfs.scm               |  3 ++-
 gnu/packages/networking.scm         |  3 ++-
 10 files changed, 70 insertions(+), 31 deletions(-)

diff --git a/gnu/packages/containers.scm b/gnu/packages/containers.scm
index 092ddb8b2e2..1989c87c59b 100644
--- a/gnu/packages/containers.scm
+++ b/gnu/packages/containers.scm
@@ -599,6 +599,7 @@ attachments, etc.")
      (list
       #:skip-build? #t
       #:import-path "github.com/containerd/stargz-snapshotter"
+      #:test-flags #~(list "-vet=off")
       ;; TODO: Remove when all transitive inputs are packaged.
       #:test-subdirs
       #~(list "fs" "task" "cache" "estargz" "fs/layer" "fs/reader"
diff --git a/gnu/packages/golang-build.scm b/gnu/packages/golang-build.scm
index f2a024399e4..02c571bc319 100644
--- a/gnu/packages/golang-build.scm
+++ b/gnu/packages/golang-build.scm
@@ -288,7 +288,8 @@ automatically resolves shift / reduce and reduce / reduce 
conflicts.")
     (build-system go-build-system)
     (arguments
      (list
-      #:import-path "github.com/golang/glog"))
+      #:import-path "github.com/golang/glog"
+      #:test-flags #~(list "-vet=off")))
     (native-inputs
      (list go-github-com-google-go-cmp))
     (home-page "https://github.com/golang/glog";)
diff --git a/gnu/packages/golang-check.scm b/gnu/packages/golang-check.scm
index be6bfaf96fe..c389febb3ad 100644
--- a/gnu/packages/golang-check.scm
+++ b/gnu/packages/golang-check.scm
@@ -1135,7 +1135,8 @@ strings which may be used in mock tests.")
     (build-system go-build-system)
     (arguments
      (list
-      #:import-path "github.com/crossdock/crossdock-go"))
+      #:import-path "github.com/crossdock/crossdock-go"
+      #:test-flags #~(list "-vet=off")))
     (propagated-inputs
      (list go-github-com-davecgh-go-spew
            go-github-com-pmezard-go-difflib
diff --git a/gnu/packages/golang-compression.scm 
b/gnu/packages/golang-compression.scm
index 85e96d2c9be..0a1d84183a0 100644
--- a/gnu/packages/golang-compression.scm
+++ b/gnu/packages/golang-compression.scm
@@ -449,6 +449,7 @@ to @url{https://pkg.go.dev/io/fs#FS, fs.FS}, but for tar 
files.")
     (arguments
      (list
       #:import-path "github.com/dsnet/compress"
+      #:test-flags #~(list "-vet=off")
       #:test-subdirs
       #~(list "brotli/..." "bzip2/..." "flate" "internal" "internal/prefix"
               "internal/testutil" "xflate/...")
@@ -1228,7 +1229,8 @@ any dependency on any C code.")
     (arguments
      (list
       #:skip-build? #t
-      #:import-path "github.com/vbatts/tar-split"))
+      #:import-path "github.com/vbatts/tar-split"
+      #:test-flags #~(list "-vet=off")))
     (native-inputs
      (list go-github-com-fatih-color
            go-github-com-magefile-mage
diff --git a/gnu/packages/golang-crypto.scm b/gnu/packages/golang-crypto.scm
index f59f49c6bc7..ef345032db9 100644
--- a/gnu/packages/golang-crypto.scm
+++ b/gnu/packages/golang-crypto.scm
@@ -5555,7 +5555,9 @@ encryption primitives, it SHOULD NOT be used for new 
applications.")
         (base32 "1lh938194hvkf8pqgnxwf6hvjv9rv0j3kasi07r2ckrj8sxzk4jc"))))
     (build-system go-build-system)
     (arguments
-     `(#:import-path "git.torproject.org/pluggable-transports/goptlib.git"))
+     (list
+      #:import-path "git.torproject.org/pluggable-transports/goptlib.git"
+      #:test-flags #~(list "-vet=off")))
     (home-page 
"https://gitweb.torproject.org/pluggable-transports/goptlib.git/";)
     (synopsis "Go pluggable transports library")
     (description "GoPtLib is a library for writing Tor pluggable transports in
diff --git a/gnu/packages/golang-vcs.scm b/gnu/packages/golang-vcs.scm
index 6c1d155d546..35a44f4c441 100644
--- a/gnu/packages/golang-vcs.scm
+++ b/gnu/packages/golang-vcs.scm
@@ -567,7 +567,8 @@ supported yet.")
                               "TestDetectErrorBadRequest"
                               "TestFetchOK"
                               "TestFetchError/not_found")
-                            "|"))))
+                            "|")
+                           "-vet=off")))
     (native-inputs
      ;; Test dependencies.
      (append
diff --git a/gnu/packages/golang-web.scm b/gnu/packages/golang-web.scm
index a08813b7cd1..53594aaf004 100644
--- a/gnu/packages/golang-web.scm
+++ b/gnu/packages/golang-web.scm
@@ -975,7 +975,8 @@ its service definition.")
     (arguments
      (list
       #:import-path "cloud.google.com/go/profiler"
-      #:unpack-path "cloud.google.com/go"))
+      #:unpack-path "cloud.google.com/go"
+      #:test-flags #~(list "-vet=off")))
     (native-inputs
      (list go-github-com-golang-mock))
     (propagated-inputs
@@ -10039,7 +10040,9 @@ GitHub API v3.")
             (delete-file-recursively "tools")))))
     (arguments
      (substitute-keyword-arguments arguments
-       ((#:import-path _) "github.com/google/go-github/v61")))
+       ((#:import-path _) "github.com/google/go-github/v61")
+       ((#:test-flags test-flags #~(list))
+        #~(list "-vet=off"))))
     (propagated-inputs
      (list go-github-com-google-go-querystring))))
 
@@ -10090,7 +10093,8 @@ GitHub API v3.")
      (substitute-keyword-arguments arguments
        ((#:import-path _) "github.com/google/go-github/v78")
        ((#:test-flags test-flags #~(list))
-        #~(list "-skip" (string-join
+        #~(list "-vet=off"
+                "-skip" (string-join
                          ;; Tests need network setup and access to Internet.
                          (list
                           "TestEnterpriseService_ListEnterpriseNetworkC"
@@ -10124,7 +10128,8 @@ GitHub API v3.")
      (substitute-keyword-arguments arguments
        ((#:import-path _) "github.com/google/go-github/v81")
        ((#:test-flags test-flags #~(list))
-        #~(list "-skip" (string-join
+        #~(list "-vet=off"
+                "-skip" (string-join
                          ;; Tests need network setup and access to Internet.
                          (list "TestEnterpriseService_.*"
                                "TestOrganizationsService_.*"
@@ -11407,7 +11412,8 @@ with other clients.")
     (build-system go-build-system)
     (arguments
      (list
-      #:import-path "github.com/hashicorp/go-retryablehttp"))
+      #:import-path "github.com/hashicorp/go-retryablehttp"
+      #:test-flags #~(list "-vet=off")))
     (propagated-inputs
      (list go-github-com-hashicorp-go-hclog
            go-github-com-hashicorp-go-cleanhttp))
@@ -16123,7 +16129,8 @@ function for formatting a Forwarded header.")
     (build-system go-build-system)
     (arguments
      (list
-      #:import-path "github.com/multiformats/go-multiaddr"))
+      #:import-path "github.com/multiformats/go-multiaddr"
+      #:test-flags #~(list "-vet=off")))
     (native-inputs
      (list go-github-com-stretchr-testify))
     (propagated-inputs
@@ -17778,7 +17785,8 @@ in Golang.")
         (base32 "0fihyk4p7mqilj4ymdrgns6fg3c2pfsi12v145im5vy1gxy6lc42"))))
     (arguments
      (list
-      #:import-path "github.com/pion/dtls/v2"))
+      #:import-path "github.com/pion/dtls/v2"
+      #:test-flags #~(list "-vet=off")))
     (native-inputs
      (list go-github-com-stretchr-testify))
     (propagated-inputs
@@ -22654,7 +22662,8 @@ TCP/UDP and IPv4/IPv6 support.")
     (build-system go-build-system)
     (arguments
      (list
-      #:import-path "github.com/uber/jaeger-client-go"))
+      #:import-path "github.com/uber/jaeger-client-go"
+      #:test-flags #~(list "-vet=off")))
     (native-inputs
      (list go-github-com-crossdock-crossdock-go
            go-github-com-golang-mock
@@ -23303,7 +23312,8 @@ netmasks.")
     (arguments
      (list
       #:skip-build? #t
-      #:import-path "github.com/willscott/go-nfs-client"))
+      #:import-path "github.com/willscott/go-nfs-client"
+      #:test-flags #~(list "-vet=off")))
     (propagated-inputs (list go-github-com-rasky-go-xdr))
     (home-page "https://github.com/willscott/go-nfs-client";)
     (synopsis "NFS client for Go")
@@ -24025,7 +24035,8 @@ alert us to censorship events.")
     (build-system go-build-system)
     (arguments
      (list
-      #:import-path 
"gitlab.torproject.org/tpo/anti-censorship/pluggable-transports/goptlib"))
+      #:import-path 
"gitlab.torproject.org/tpo/anti-censorship/pluggable-transports/goptlib"
+      #:test-flags #~(list "-vet=off")))
     (home-page 
"https://gitlab.torproject.org/tpo/anti-censorship/pluggable-transports/goptlib";)
     (synopsis "Go pluggable transports library")
     (description "GoPtLib is a library for writing Tor pluggable transports in
@@ -24366,7 +24377,8 @@ state machine.  See 
@url{https://raft.github.io/raft.pdf} for more info.")
     (build-system go-build-system)
     (arguments
      (list
-      #:import-path "go.mau.fi/whatsmeow"))
+      #:import-path "go.mau.fi/whatsmeow"
+      #:test-flags #~(list "-vet=off")))
     (propagated-inputs
      (list go-github-com-beeper-argo-go
            go-github-com-coder-websocket
@@ -24436,7 +24448,8 @@ lists)
               "trace/propagation"
               "trace/tracestate")
       #:test-flags
-      #~(list "-skip"
+      #~(list "-vet=off"
+              "-skip"
               (string-join
                ;; Tests requiring networking.
                (list "TestAgainstSpecs/Successful_GET_call_to_https.*"
diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm
index 9e7e3b2e581..d6357e4b99c 100644
--- a/gnu/packages/golang-xyz.scm
+++ b/gnu/packages/golang-xyz.scm
@@ -4015,7 +4015,9 @@ based on murmurhash.")
         (base32 "16s66zbfkn35msmxpkiwf5dv91kzw7yzxzkcv8ma44j7lbgzx5qk"))))
     (build-system go-build-system)
     (arguments
-     '(#:import-path "github.com/blang/semver"))
+     (list
+      #:import-path "github.com/blang/semver"
+      #:test-flags #~(list "-vet=off")))
     (home-page "https://github.com/blang/semver";)
     (synopsis "Semantic versioning library written in Go")
     (description
@@ -4040,6 +4042,7 @@ based on murmurhash.")
      (list
       #:import-path "github.com/blang/semver/v4"
       #:unpack-path "github.com/blang/semver"
+      #:test-flags #~(list "-vet=off")
       #:phases
       #~(modify-phases %standard-phases
           (add-after 'unpack 'remove-examples
@@ -7426,7 +7429,8 @@ cgroup uses the OCI runtime-spec found
      (list
       #:import-path  "github.com/containerd/cgroups/v3"
       #:test-flags
-      #~(list "-skip" (string-join
+      #~(list "-vet=off"
+              "-skip" (string-join
                        ;; Tests requiring root access to cgrups.
                        (list "TestCPUQuotaPeriodUSec"
                              "TestCgroupType"
@@ -8158,7 +8162,8 @@ between different image formats like Docker and OCI.")
      (list
       #:import-path "github.com/containers/storage"
       #:test-flags
-      #~(list "-skip" (string-join
+      #~(list "-vet=off"
+              "-skip" (string-join
                        ;; Most of these tests require root level access to
                        ;; write files in, check if they may be covered:
                        ;;
@@ -11871,7 +11876,8 @@ specified in 
@url{https://datatracker.ietf.org/doc/html/rfc6350, RFC 6350}.")
     (build-system go-build-system)
     (arguments
      (list
-      #:import-path "github.com/emersion/go-webdav"))
+      #:import-path "github.com/emersion/go-webdav"
+      #:test-flags #~(list "-vet=off")))
     (propagated-inputs
      (list go-github-com-emersion-go-ical
            go-github-com-emersion-go-vcard))
@@ -14003,7 +14009,8 @@ professionally translated
      (list
       #:test-flags
       ;; Tests require running Redis server.
-      #~(list "-skip" "Example|TestGinkgoSuite")
+      #~(list "-skip" "Example|TestGinkgoSuite"
+              "-vet=off")
       #:import-path "github.com/go-redis/redis"))
     (native-inputs
      (list go-github-com-onsi-ginkgo))
@@ -18538,7 +18545,9 @@ destinations: the console and a log file.")
         (base32 "0kf29cmmbic72kfrfd1xnass7l9j85impf8mqn5f3fd3ibi9bs74"))))
     (build-system go-build-system)
     (arguments
-     (list #:import-path "github.com/jinzhu/copier"))
+     (list
+      #:import-path "github.com/jinzhu/copier"
+      #:test-flags #~(list "-vet=off")))
     (home-page "https://github.com/jinzhu/copier";)
     (synopsis "Go copier library")
     (description
@@ -22497,7 +22506,7 @@ optimized for UTF-16.")
     (arguments
      (list
       #:import-path "github.com/maypok86/otter/v2"
-      #:test-flags #~(list "-timeout=30m" "-shuffle=on")
+      #:test-flags #~(list "-timeout=30m" "-shuffle=on" "-vet=off")
       #:phases
       #~(modify-phases %standard-phases
           (add-after 'unpack 'go-generate
@@ -27511,7 +27520,8 @@ counter, concurrent hash table, multiple concurrent 
queues and @code{mutex}.")
     (build-system go-build-system)
     (arguments
      (list
-      #:import-path "github.com/puzpuzpuz/xsync/v4"))))
+      #:import-path "github.com/puzpuzpuz/xsync/v4"
+      #:test-flags #~(list "-vet=off")))))
 
 (define-public go-github-com-quasilyte-go-ruleguard-dsl
   (package
@@ -29325,6 +29335,7 @@ and branchless algorithms shine.")
      (list
       #:skip-build? #t
       #:import-path "github.com/segmentio/encoding"
+      #:test-flags #~(list "-vet=off")
       #:phases
       #~(modify-phases %standard-phases
           (add-after 'unpack 'go-generate
@@ -30433,7 +30444,8 @@ packages
     (build-system go-build-system)
     (arguments
      (list
-      #:import-path "github.com/spf13/cobra"))
+      #:import-path "github.com/spf13/cobra"
+      #:test-flags #~(list "-vet=off")))
     (propagated-inputs
      (list go-github-com-cpuguy83-go-md2man-v2
            go-github-com-spf13-pflag
@@ -34779,7 +34791,8 @@ objects.")
     (build-system go-build-system)
     (arguments
      (list
-      #:import-path "github.com/zeebo/errs"))
+      #:import-path "github.com/zeebo/errs"
+      #:test-flags #~(list "-vet=off")))
     (home-page "https://github.com/zeebo/errs";)
     (synopsis "Simple error package")
     (description
@@ -35544,7 +35557,8 @@ context for Go.")
     (build-system go-build-system)
     (arguments
      (list
-      #:import-path "go.bug.st/relaxed-semver"))
+      #:import-path "go.bug.st/relaxed-semver"
+      #:test-flags #~(list "-vet=off")))
     (native-inputs
      (list go-github-com-stretchr-testify))
     (propagated-inputs
@@ -36417,6 +36431,7 @@ organization}.")
     (arguments
      (list
       #:import-path "go.yaml.in/yaml/v4"
+      #:test-flags #~(list "-vet=off")
       #:phases
       #~(modify-phases %standard-phases
           (add-after 'unpack 'copy-yaml-test-suite
@@ -36671,7 +36686,8 @@ distributions of benchmark measurements
     (build-system go-build-system)
     (arguments
      (list
-      #:import-path "google.golang.org/appengine"))
+      #:import-path "google.golang.org/appengine"
+      #:test-flags #~(list "-vet=off")))
     (propagated-inputs
      (list go-github-com-golang-protobuf
            go-golang-org-x-text
diff --git a/gnu/packages/ipfs.scm b/gnu/packages/ipfs.scm
index 12a73dbb155..cece5ce9d9d 100644
--- a/gnu/packages/ipfs.scm
+++ b/gnu/packages/ipfs.scm
@@ -148,7 +148,8 @@ alternative fork of @url{https://github.com/gxed/bbloom}.";)
       #:embed-files #~(list "sorted-network-list.bin")
       #:import-path "github.com/ipfs/boxo"
       #:test-flags
-      #~(list "-skip" (string-join
+      #~(list "-vet=off"
+              "-skip" (string-join
                        ;; Network access is required.
                        (list "TestAddNewDNSResolver"
                              "TestOverrideDNSDefaults"
diff --git a/gnu/packages/networking.scm b/gnu/packages/networking.scm
index a29d8b35375..d410b4c1f1d 100644
--- a/gnu/packages/networking.scm
+++ b/gnu/packages/networking.scm
@@ -5078,7 +5078,8 @@ implementing them.")
            ;; XXX: Test fails with "runtime error: slice bounds out of range
            ;; [:32] with capacity 0."  See:
            ;;   <https://github.com/yggdrasil-network/yggdrasil-go/issues/1353>
-           #:test-flags #~(list "-skip" "TestConfigReadFromEmpty/empty")
+           #:test-flags #~(list "-skip" "TestConfigReadFromEmpty/empty"
+                                "-vet=off")
            #:phases
            #~(modify-phases %standard-phases
                (replace 'build

Reply via email to