gnu: govulncheck: Update to 0.0.0-20230110180137-6ad3e3d07815.
* gnu/packages/golang.scm (govulncheck): Update to 0.0.0-20230110180137-6ad3e3d07815. [arguments]: <#:tests?>: Disable as requiring network access. <#:import-path>: Adjust to reflect go.mod for cmd/. <#:unpack-path>: Add it. <#:phases>: Remove all redundant custom phases. Change-Id: I57dd70fd2e018d9d92a2170d7e9c32080d7d2c2c
This commit is contained in:
		
							parent
							
								
									39b908a389
								
							
						
					
					
						commit
						07dbf74fb8
					
				
					 1 changed files with 7 additions and 15 deletions
				
			
		|  | @ -3157,7 +3157,9 @@ command-line parsers.") | ||||||
| (define-public govulncheck | (define-public govulncheck | ||||||
|   (package |   (package | ||||||
|     (name "govulncheck") |     (name "govulncheck") | ||||||
|     (version "0.0.0-20221229164908-ebf31f7dc3ef") |     ;; XXX: Newer version of govulncheck requires golang.org/x/telemetry, | ||||||
|  |     ;; which needs to be discussed if it may be included in Guix. | ||||||
|  |     (version "0.0.0-20230110180137-6ad3e3d07815") | ||||||
|     (source (origin |     (source (origin | ||||||
|               (method git-fetch) |               (method git-fetch) | ||||||
|               (uri (git-reference |               (uri (git-reference | ||||||
|  | @ -3166,23 +3168,13 @@ command-line parsers.") | ||||||
|               (file-name (git-file-name name version)) |               (file-name (git-file-name name version)) | ||||||
|               (sha256 |               (sha256 | ||||||
|                (base32 |                (base32 | ||||||
|                 "1w055g90k7anrrcvfrsqklxzl9pl0vqdiwpayj9f0brwys9xhj7d")))) |                 "1fhz27ni8bs872rgvqq700qacak9v45zy0fh2hilq21sk6dks72r")))) | ||||||
|     (build-system go-build-system) |     (build-system go-build-system) | ||||||
|     (arguments |     (arguments | ||||||
|      `(#:import-path "golang.org/x/vuln" |      `(#:tests? #f ; it tires to download modules from the network | ||||||
|        #:install-source? #f |        #:install-source? #f | ||||||
|        #:phases ,#~(modify-phases %standard-phases |        #:import-path "golang.org/x/vuln/cmd/govulncheck" | ||||||
|                      (add-after 'unpack 'remove-go-mod-tidy |        #:unpack-path "golang.org/x/vuln")) | ||||||
|                        (lambda _ |  | ||||||
|                          (substitute* "src/golang.org/x/vuln/checks.bash" |  | ||||||
|                            (("go mod tidy") |  | ||||||
|                             #$(file-append coreutils-minimal "/bin/true"))))) |  | ||||||
|                      (replace 'build |  | ||||||
|                        (lambda arguments |  | ||||||
|                          (apply (assoc-ref %standard-phases |  | ||||||
|                                            'build) |  | ||||||
|                                 `(,@arguments #:import-path |  | ||||||
|                                   "golang.org/x/vuln/cmd/govulncheck"))))))) |  | ||||||
|     (native-inputs (list coreutils-minimal)) |     (native-inputs (list coreutils-minimal)) | ||||||
|     (inputs (list go-golang-org-x-sys |     (inputs (list go-golang-org-x-sys | ||||||
|                   go-github-com-google-renameio |                   go-github-com-google-renameio | ||||||
|  |  | ||||||
		Reference in a new issue