gnu: go-golang-org-x-telemetry: Fix build.

* gnu/packages/golang-build.scm (go-golang-org-x-telemetry)
[source]<snippet>: Remove submodules with their own go.mod to be
packaged separately.
[arguments]<test-flags>: Skip all tests requiring networking.

Change-Id: Ie5ef5f99da83d9d803b5c07d99ef1763968ee308
This commit is contained in:
Sharlatan Hellseher 2024-12-19 18:57:49 +00:00
parent 6cad6aec08
commit 92d4c2e302
No known key found for this signature in database
GPG key ID: 76D727BFF62CD2B5

View file

@ -806,11 +806,34 @@ support for low-level interaction with the operating system.")
(commit (go-version->git-ref version))))
(file-name (git-file-name name version))
(sha256
(base32 "05gvxiv0yqfclckm2ysavbfy1jpz8v71r2glrcvhjq8wzw90g9gz"))))
(base32 "05gvxiv0yqfclckm2ysavbfy1jpz8v71r2glrcvhjq8wzw90g9gz"))
(modules '((guix build utils)))
(snippet
#~(begin
;; Submodules with their own go.mod files and packaged separatly:
;;
;; - golang.org/x/telemetry/config
;; - golang.org/x/telemetry/godev
(for-each delete-file-recursively (list "config" "godev"))))))
(build-system go-build-system)
(arguments
(list
#:test-flags #~(list "-skip" "TestStart|TestConcurrentStart")
#:test-flags
#~(list "-skip" (string-join
;; Tests fail with error: failed to download config
;; module.
(list "TestConcurrentStart"
"TestDownload"
"TestRun_Basic"
"TestRun_Concurrent"
"TestRun_DebugLog"
"TestRun_EmptyUpload"
"TestRun_MissingDate"
"TestRun_ModeHandling/on"
"TestRun_MultipleUploads"
"TestRun_Retries"
"TestStart") ; no upload occurred on 2786
"|"))
#:import-path "golang.org/x/telemetry"))
(propagated-inputs
(list go-golang-org-x-mod