From 2a4bba2249a71e928bd612d47b6ef439dc498c9c Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Fri, 7 Feb 2025 08:37:00 +0000 Subject: [PATCH] gnu: docker-registry: Limit amount of tests, fix build. Reported in #76111: docker-registry fails to build after commit The commit 1e4a22c4d7a03ec8614b02f0878bc38b6ba54580 introduced a regression, where go-build-system was set to run all tests available in the project. This change limits amount of the tests. * gnu/packages/docker.scm (docker-registry) [arguments] : Limit to a portion of sub directories. Reported-by: Denis 'GNUtoo' Carikli Change-Id: Icbe530ff0f9e2e1fe80b2897833d231dd1e14d4a --- gnu/packages/docker.scm | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/gnu/packages/docker.scm b/gnu/packages/docker.scm index aeed94e8040..9e2522d017c 100644 --- a/gnu/packages/docker.scm +++ b/gnu/packages/docker.scm @@ -731,6 +731,10 @@ Tini is integrated with Docker.") (define-public docker-registry (package (name "docker-registry") + ;; XXX: The project ships a "vendor" directory containing all + ;; dependencies, consider to review and package them. The Golang library + ;; is packaged in (gnu packges golang-xyz) as + ;; go-github-com-docker-distribution. (version "2.8.3") (source (origin (method git-fetch) @@ -745,6 +749,12 @@ Tini is integrated with Docker.") (arguments (list #:import-path "github.com/docker/distribution" + #:test-subdirs #~(list "configuration" + "context" + "health" + "manifest" + "notifications/..." + "uuid") #:phases #~(modify-phases %standard-phases (add-after 'unpack 'chdir-to-src