gnu: go-github-com-golang-protobuf-proto: Adjust package name.
Rename go-github-com-golang-protobuf-proto to the Golang module name as seen in go.mod. Due to lack of support of building submodules in go-build-system 'build phase is omitted and 'check phase is substituted by custom one providing nested path tests. * gnu/packages/golang.scm (go-github-com-golang-protobuf-proto): Rename to... (go-github-com-golang-protobuf): ... this. <#:unpack-path>: Remove argument. <#:phases>: Delete 'build phase. Add custom 'check phase and run tests for all submodules. (go-github-com-prometheus-common, go-github-com-matttproud-golang-protobuf-extensions-pbutil) [propagated-inputs]: Adjust accordingly. * gnu/packages/golang-check.scm (go-github-com-onsi-gomega) [propagated-inputs]: Likewise * gnu/packages/golang-web.scm (go-github-com-golang-groupcache, go-github-com-quic-go-quic-go) [propagated-inputs]: Likewise * gnu/packages/golang-xyz.scm (go-github-com-prometheus-client-model) [propagated-inputs]: Likewise * gnu/packages/syncthing.scm (go-github-com-matttproud-golang-protobuf-extensions-pbutil) [propagated-inputs]: Likewise Change-Id: I28c11739247a5ebafefd032d04a548a683fa0454 Co-authored-by: Hilton Chain <hako@ultrarare.space>master
parent
12c72ab2cc
commit
d2d5a3af3e
|
@ -657,7 +657,7 @@ Gomega matcher library.")
|
||||||
#:go go-1.21
|
#:go go-1.21
|
||||||
#:import-path "github.com/onsi/gomega"))
|
#:import-path "github.com/onsi/gomega"))
|
||||||
(propagated-inputs
|
(propagated-inputs
|
||||||
(list go-github-com-golang-protobuf-proto
|
(list go-github-com-golang-protobuf
|
||||||
go-golang-org-x-net
|
go-golang-org-x-net
|
||||||
go-golang-org-x-sys
|
go-golang-org-x-sys
|
||||||
go-golang-org-x-text
|
go-golang-org-x-text
|
||||||
|
|
|
@ -919,7 +919,7 @@ language.")
|
||||||
(arguments
|
(arguments
|
||||||
(list #:import-path "github.com/golang/groupcache"))
|
(list #:import-path "github.com/golang/groupcache"))
|
||||||
(propagated-inputs
|
(propagated-inputs
|
||||||
(list go-github-com-golang-protobuf-proto))
|
(list go-github-com-golang-protobuf))
|
||||||
(home-page "https://github.com/golang/groupcache")
|
(home-page "https://github.com/golang/groupcache")
|
||||||
(synopsis "Groupcache is a caching and cache-filling library")
|
(synopsis "Groupcache is a caching and cache-filling library")
|
||||||
(description
|
(description
|
||||||
|
|
|
@ -3413,7 +3413,7 @@ Pion}.")
|
||||||
;; Source-only package
|
;; Source-only package
|
||||||
(delete 'build))))
|
(delete 'build))))
|
||||||
(propagated-inputs
|
(propagated-inputs
|
||||||
(list go-github-com-golang-protobuf-proto))
|
(list go-github-com-golang-protobuf))
|
||||||
(synopsis "Data model artifacts for Prometheus")
|
(synopsis "Data model artifacts for Prometheus")
|
||||||
(description "This package provides data model artifacts for Prometheus.")
|
(description "This package provides data model artifacts for Prometheus.")
|
||||||
(home-page "https://github.com/prometheus/client_model")
|
(home-page "https://github.com/prometheus/client_model")
|
||||||
|
|
|
@ -6229,23 +6229,32 @@ test results.")
|
||||||
(home-page "https://github.com/gotestyourself/gotestsum")
|
(home-page "https://github.com/gotestyourself/gotestsum")
|
||||||
(license license:asl2.0)))
|
(license license:asl2.0)))
|
||||||
|
|
||||||
(define-public go-github-com-golang-protobuf-proto
|
(define-public go-github-com-golang-protobuf
|
||||||
(package
|
(package
|
||||||
(name "go-github-com-golang-protobuf-proto")
|
(name "go-github-com-golang-protobuf")
|
||||||
(version "1.5.3")
|
(version "1.5.3")
|
||||||
(source (origin
|
(source (origin
|
||||||
(method git-fetch)
|
(method git-fetch)
|
||||||
(uri (git-reference
|
(uri (git-reference
|
||||||
(url "https://github.com/golang/protobuf")
|
(url "https://github.com/golang/protobuf")
|
||||||
(commit (string-append "v" version))))
|
(commit (string-append "v" version))))
|
||||||
(file-name (git-file-name name version))
|
(file-name (git-file-name name version))
|
||||||
(sha256
|
(sha256
|
||||||
(base32
|
(base32
|
||||||
"03f1w2cd4s8a3xhl61x7yjx81kbzlrjpvnnwmbhqnz814yi7h43i"))))
|
"03f1w2cd4s8a3xhl61x7yjx81kbzlrjpvnnwmbhqnz814yi7h43i"))))
|
||||||
(build-system go-build-system)
|
(build-system go-build-system)
|
||||||
(arguments
|
(arguments
|
||||||
'(#:import-path "github.com/golang/protobuf/proto"
|
(list #:import-path "github.com/golang/protobuf"
|
||||||
#:unpack-path "github.com/golang/protobuf"))
|
#:phases
|
||||||
|
#~(modify-phases %standard-phases
|
||||||
|
;; XXX: Workaround for go-build-system's lack of Go modules
|
||||||
|
;; support.
|
||||||
|
(delete 'build)
|
||||||
|
(replace 'check
|
||||||
|
(lambda* (#:key tests? import-path #:allow-other-keys)
|
||||||
|
(when tests?
|
||||||
|
(with-directory-excursion (string-append "src/" import-path)
|
||||||
|
(invoke "go" "test" "-v" "./..."))))))))
|
||||||
(propagated-inputs
|
(propagated-inputs
|
||||||
(list go-google-golang-org-protobuf))
|
(list go-google-golang-org-protobuf))
|
||||||
(synopsis "Go support for Protocol Buffers")
|
(synopsis "Go support for Protocol Buffers")
|
||||||
|
@ -7589,7 +7598,7 @@ formatting information, rather than the current locale name.")
|
||||||
;; Source-only package
|
;; Source-only package
|
||||||
(delete 'build))))
|
(delete 'build))))
|
||||||
(propagated-inputs
|
(propagated-inputs
|
||||||
(list go-github-com-golang-protobuf-proto
|
(list go-github-com-golang-protobuf
|
||||||
go-github-com-matttproud-golang-protobuf-extensions-pbutil
|
go-github-com-matttproud-golang-protobuf-extensions-pbutil
|
||||||
go-github-com-prometheus-client-model))
|
go-github-com-prometheus-client-model))
|
||||||
(synopsis "Prometheus metrics")
|
(synopsis "Prometheus metrics")
|
||||||
|
@ -7647,7 +7656,7 @@ system, kernel, and process metrics from the @file{/proc} pseudo file system.")
|
||||||
(delete 'build))))
|
(delete 'build))))
|
||||||
(propagated-inputs
|
(propagated-inputs
|
||||||
(list go-github-com-beorn7-perks-quantile
|
(list go-github-com-beorn7-perks-quantile
|
||||||
go-github-com-golang-protobuf-proto
|
go-github-com-golang-protobuf
|
||||||
go-github-com-prometheus-client-model
|
go-github-com-prometheus-client-model
|
||||||
go-github-com-prometheus-common
|
go-github-com-prometheus-common
|
||||||
go-github-com-prometheus-procfs
|
go-github-com-prometheus-procfs
|
||||||
|
|
|
@ -260,7 +260,7 @@ notification library in Go.")
|
||||||
#:import-path "github.com/matttproud/golang_protobuf_extensions/v2/pbutil"
|
#:import-path "github.com/matttproud/golang_protobuf_extensions/v2/pbutil"
|
||||||
#:unpack-path "github.com/matttproud/golang_protobuf_extensions/v2"))
|
#:unpack-path "github.com/matttproud/golang_protobuf_extensions/v2"))
|
||||||
(propagated-inputs
|
(propagated-inputs
|
||||||
(list go-github-com-golang-protobuf-proto
|
(list go-github-com-golang-protobuf
|
||||||
go-google-golang-org-protobuf))
|
go-google-golang-org-protobuf))
|
||||||
(synopsis "Streaming Protocol Buffers in Go")
|
(synopsis "Streaming Protocol Buffers in Go")
|
||||||
(description "This package provides various Protocol Buffer
|
(description "This package provides various Protocol Buffer
|
||||||
|
|
Reference in New Issue