summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gnu/packages/golang-check.scm4
-rw-r--r--gnu/packages/golang-xyz.scm12
2 files changed, 15 insertions, 1 deletions
diff --git a/gnu/packages/golang-check.scm b/gnu/packages/golang-check.scm
index 3d3d678729..108db31883 100644
--- a/gnu/packages/golang-check.scm
+++ b/gnu/packages/golang-check.scm
@@ -692,8 +692,10 @@ used in go-github-com-jackc-pgx.")
(build-system go-build-system)
(arguments
(list
- #:tests? #f ; cycles with go-github-com-jackc-pgconn
#:import-path "github.com/jackc/pgmock"))
+ (native-inputs
+ (list go-github-com-jackc-pgconn-bootstrap
+ go-github-com-stretchr-testify))
(propagated-inputs
(list go-github-com-jackc-pgproto3-v2))
(home-page "https://github.com/jackc/pgmock")
diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm
index bf30ac7a78..8aa628db59 100644
--- a/gnu/packages/golang-xyz.scm
+++ b/gnu/packages/golang-xyz.scm
@@ -5108,6 +5108,18 @@ queries with a higher level library and only use pgconn directly when required
for low-level access to PostgreSQL functionality.")
(license license:expat)))
+(define-public go-github-com-jackc-pgconn-bootstrap
+ (hidden-package
+ (package
+ (inherit go-github-com-jackc-pgconn)
+ (arguments
+ (list #:tests? #f
+ #:import-path "github.com/jackc/pgconn"
+ #:phases
+ #~(modify-phases %standard-phases
+ (delete 'build))))
+ (native-inputs '()))))
+
(define-public go-github-com-jackc-pgerrcode
(package
(name "go-github-com-jackc-pgerrcode")