[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
56/172: gnu: go-golang-org-x-vuln: Move to golang-build.
From: |
guix-commits |
Subject: |
56/172: gnu: go-golang-org-x-vuln: Move to golang-build. |
Date: |
Sat, 9 Nov 2024 16:44:53 -0500 (EST) |
sharlatan pushed a commit to branch master
in repository guix.
commit 05299e344ab3e2edfeb9468638323e40c0d1c286
Author: Sharlatan Hellseher <sharlatanus@gmail.com>
AuthorDate: Fri Sep 13 10:25:00 2024 +0100
gnu: go-golang-org-x-vuln: Move to golang-build.
* gnu/packages/golang.scm (go-golang-org-x-vuln, govulncheck): Move from
here ...
* gnu/packages/golang-build.scm: ... to here.
Change-Id: I5fc09c4e9e156005f494e532339a05b6c8b395ad
---
gnu/packages/golang-build.scm | 61 +++++++++++++++++++++++++++++++++++++++++++
gnu/packages/golang.scm | 57 ----------------------------------------
2 files changed, 61 insertions(+), 57 deletions(-)
diff --git a/gnu/packages/golang-build.scm b/gnu/packages/golang-build.scm
index bc7e05128b..583b49ec59 100644
--- a/gnu/packages/golang-build.scm
+++ b/gnu/packages/golang-build.scm
@@ -955,6 +955,52 @@ time.")
Go programming language.")
(license license:bsd-3)))
+(define-public go-golang-org-x-vuln
+ (package
+ (name "go-golang-org-x-vuln")
+ ;; XXX: Newer version of govulncheck requires golang.org/x/telemetry,
+ ;; which needs to be discussed if it may be included in Guix.
+ (version "1.1.3")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://go.googlesource.com/vuln")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "0izm18r8ksx4n10an9nxyflc8cgr766qrwfmx5nbk702x80prln9"))))
+ (build-system go-build-system)
+ (arguments
+ (list
+ #:tests? #f ; it tires to download modules from the network
+ #:import-path "golang.org/x/vuln"
+ #: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"
+ "./doc/..."
+ "./internal/..."
+ "./scan/..."))))))))
+ (propagated-inputs
+ (list go-github-com-google-go-cmdtest
+ go-github-com-google-go-cmp
+ go-golang-org-x-mod
+ go-golang-org-x-sync
+ go-golang-org-x-telemetry
+ go-golang-org-x-tools))
+ (home-page "https://golang.org/x/vuln")
+ (synopsis "Go Vulnerability Management")
+ (description
+ "This repository contains packages for accessing and analyzing data from
+the @url{https://vuln.go.dev,Go Vulnerability Database}.")
+ (license license:bsd-3)))
+
(define-public go-golang-org-x-xerrors
(package
(name "go-golang-org-x-xerrors")
@@ -1016,6 +1062,21 @@ data. It is a successor to
@code{go-github-com-golang-protobuf} with an
improved and cleaner API.")
(license license:bsd-3)))
+;;;
+;;; Executables:
+;;;
+
+(define-public govulncheck
+ (package
+ (inherit go-golang-org-x-vuln)
+ (name "govulncheck")
+ (arguments
+ (list
+ #:tests? #f
+ #:install-source? #f
+ #:import-path "golang.org/x/vuln/cmd/govulncheck"
+ #:unpack-path "golang.org/x/vuln"))))
+
;;;
;;; Avoid adding new packages to the end of this file. To reduce the chances
;;; of a merge conflict, place them above by existing packages with similar
diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm
index af71084915..ceaca67cc0 100644
--- a/gnu/packages/golang.scm
+++ b/gnu/packages/golang.scm
@@ -3107,63 +3107,6 @@ command-line parsers.")
(home-page "https://github.com/tj/docopt")
(license license:expat)))
-(define-public go-golang-org-x-vuln
- (package
- (name "go-golang-org-x-vuln")
- ;; XXX: Newer version of govulncheck requires golang.org/x/telemetry,
- ;; which needs to be discussed if it may be included in Guix.
- (version "1.1.3")
- (source
- (origin
- (method git-fetch)
- (uri (git-reference
- (url "https://go.googlesource.com/vuln")
- (commit (string-append "v" version))))
- (file-name (git-file-name name version))
- (sha256
- (base32 "0izm18r8ksx4n10an9nxyflc8cgr766qrwfmx5nbk702x80prln9"))))
- (build-system go-build-system)
- (arguments
- (list
- #:tests? #f ; it tires to download modules from the network
- #:import-path "golang.org/x/vuln"
- #: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"
- "./doc/..."
- "./internal/..."
- "./scan/..."))))))))
- (propagated-inputs
- (list go-github-com-google-go-cmdtest
- go-github-com-google-go-cmp
- go-golang-org-x-mod
- go-golang-org-x-sync
- go-golang-org-x-telemetry
- go-golang-org-x-tools))
- (home-page "https://golang.org/x/vuln")
- (synopsis "Go Vulnerability Management")
- (description
- "This repository contains packages for accessing and analyzing data from
-the @url{https://vuln.go.dev,Go Vulnerability Database}.")
- (license license:bsd-3)))
-
-(define-public govulncheck
- (package
- (inherit go-golang-org-x-vuln)
- (name "govulncheck")
- (arguments
- (list
- #:tests? #f
- #:install-source? #f
- #:import-path "golang.org/x/vuln/cmd/govulncheck"
- #:unpack-path "golang.org/x/vuln"))))
-
(define-public gopls
(package
(name "gopls")
- 23/172: gnu: packages/golang-crypto: Apply #:subdir parameter., (continued)
- 23/172: gnu: packages/golang-crypto: Apply #:subdir parameter., guix-commits, 2024/11/09
- 31/172: gnu: go-golang-org-x-xerrors: Fix indentation., guix-commits, 2024/11/09
- 24/172: gnu: go-golang-org-x-image: Update to 0.20.0., guix-commits, 2024/11/09
- 38/172: gnu: go-github-com-libp2p-go-msgio: Fix build., guix-commits, 2024/11/09
- 25/172: gnu: go-golang-org-x-mod: Update to 0.21.0., guix-commits, 2024/11/09
- 42/172: gnu: go-github-com-prometheus-exporter-toolkit: Fix build., guix-commits, 2024/11/09
- 46/172: gnu: kubo: Fix build., guix-commits, 2024/11/09
- 52/172: gnu: go-mvdan-cc-xurls: Rename variable., guix-commits, 2024/11/09
- 44/172: gnu: go-github-com-ipfs-go-ds-badger: Fix build., guix-commits, 2024/11/09
- 51/172: gnu: go-github-com-google-go-cmdtest: Fix indentation, guix-commits, 2024/11/09
- 56/172: gnu: go-golang-org-x-vuln: Move to golang-build.,
guix-commits <=
- 64/172: gnu: go-github-com-google-go-querystring: Move to golang-web., guix-commits, 2024/11/09
- 60/172: gnu: go-github-com-sergi-go-diff: Update to 1.3.1., guix-commits, 2024/11/09
- 61/172: gnu: go-golang-org-x-crypto: Update to 0.27.0., guix-commits, 2024/11/09
- 66/172: gnu: go-github-com-google-goterm: Fix indentation., guix-commits, 2024/11/09
- 68/172: gnu: go-github-com-tomnomnom-gron: Improve package style., guix-commits, 2024/11/09
- 85/172: gnu: go-github-com-go-git-go-billy: Update to 5.5.0., guix-commits, 2024/11/09
- 79/172: gnu: go-github-com-go-logr-logr: Update to 1.4.2., guix-commits, 2024/11/09
- 74/172: gnu: go-github-com-google-btree: Move to golang-build., guix-commits, 2024/11/09
- 90/172: gnu: Add go-github-com-bmatcuk-doublestar-v3., guix-commits, 2024/11/09
- 91/172: gnu: Add go-github-com-rs-xid., guix-commits, 2024/11/09