gnu: go-github-com-docker-distribution: Update to 2.8.3.

* gnu/packages/golang.scm (go-github-com-docker-distribution): Update to 2.8.3.
[source] <snippets>: Delete bundeled packages from "vendor/golang.org"
as they are availalbe in Guix.
[arguments] <test-flags>: Run short tests.
<tests-subdir>: Run some not expencive tests.

Change-Id: I47977f10ea80295b3676ba9ad4847b99fc1a6e67
This commit is contained in:
Sharlatan Hellseher 2025-01-08 20:25:19 +00:00
parent 5dd90d4e84
commit dda8158e7c
No known key found for this signature in database
GPG key ID: 76D727BFF62CD2B5

View file

@ -2309,29 +2309,39 @@ finding resources located relative to the executable file.")
(license license:bsd-3)))) (license license:bsd-3))))
(define-public go-github-com-docker-distribution (define-public go-github-com-docker-distribution
(let ((commit "325b0804fef3a66309d962357aac3c2ce3f4d329")
(revision "0"))
(package (package
(name "go-github-com-docker-distribution") (name "go-github-com-docker-distribution")
(version (git-version "0.0.0" revision commit)) (version "2.8.3")
(source (source
;; FIXME: This bundles many things, see
;; <https://debbugs.gnu.org/cgi/bugreport.cgi?bug=31881#41>.
(origin (origin
(method git-fetch) (method git-fetch)
(uri (git-reference (uri (git-reference
(url "https://github.com/docker/distribution") (url "https://github.com/docker/distribution")
(commit commit))) (commit (string-append "v" version))))
(file-name (git-file-name name version)) (file-name (git-file-name name version))
(sha256 (sha256
(base32 (base32
"1yg2zrikn3vkvkx5mn51p6bfjk840qdkn7ahhhvvcsc8mpigrjc6")))) "0dbaxmkhg53anhkzngyzlxm2bd4dwv0sv75zip1rkm0874wjbxzb"))
(snippet
;; TODO: Unbundle more.
#~(begin (use-modules (guix build utils))
(for-each delete-file-recursively
(list "vendor/golang.org"))))))
(build-system go-build-system) (build-system go-build-system)
(native-inputs (native-inputs
(list go-golang-org-x-sys go-github-com-sirupsen-logrus (list go-golang-org-x-sys go-github-com-sirupsen-logrus
go-golang-org-x-crypto)) go-golang-org-x-crypto))
(arguments (arguments
'(#:import-path "github.com/docker/distribution")) (list
#:import-path "github.com/docker/distribution"
#:test-flags #~(list "-test.short")
#:test-subdirs
#~(list "configuration"
"context"
"health"
"manifest/..."
"notifications/..."
"uuid")))
(home-page (home-page
"https://github.com/docker/distribution") "https://github.com/docker/distribution")
(synopsis "This package is a Docker toolset to pack, ship, store, and (synopsis "This package is a Docker toolset to pack, ship, store, and
@ -2339,7 +2349,7 @@ deliver content")
(description "Docker Distribution is a Docker toolset to pack, ship, (description "Docker Distribution is a Docker toolset to pack, ship,
store, and deliver content. It contains Docker Registry 2.0 and libraries store, and deliver content. It contains Docker Registry 2.0 and libraries
to interact with distribution components.") to interact with distribution components.")
(license license:asl2.0)))) (license license:asl2.0)))
(define-public go-github-com-aarzilli-golua (define-public go-github-com-aarzilli-golua
(let ((commit "03fc4642d792b1f2bc5e7343b403cf490f8c501d") (let ((commit "03fc4642d792b1f2bc5e7343b403cf490f8c501d")