1
Fork 0
mirror of https://https.git.savannah.gnu.org/git/guix.git/ synced 2025-07-13 18:40:57 +02:00

gnu: go-github-com-golang-protobuf: Simplify.

* gnu/packages/golang-build.scm (go-github-com-golang-protobuf): Update
to 1.5.4.
[arguments] <phases>: Use default 'check.

Change-Id: If364ed26dc2eb3006264b627696d57536c9aa7b8
This commit is contained in:
Sharlatan Hellseher 2024-12-20 00:17:14 +00:00
parent 5e2566906a
commit dd4ee37f9a
No known key found for this signature in database
GPG key ID: 76D727BFF62CD2B5

View file

@ -136,14 +136,7 @@ functions that have a name matched by regex:.")
#:import-path "github.com/golang/protobuf" #:import-path "github.com/golang/protobuf"
#:phases #:phases
#~(modify-phases %standard-phases #~(modify-phases %standard-phases
;; XXX: Workaround for go-build-system's lack of Go modules (delete 'build)))) ; no go files in project's root
;; 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" "./..."))))))))
(native-inputs (native-inputs
(list go-github-com-google-go-cmp)) (list go-github-com-google-go-cmp))
(propagated-inputs (propagated-inputs