guix_mirror_bot pushed a commit to branch master
in repository guix.
commit 5b1fac19a7ae517de23345fb9796a92ee8a31f3c
Author: Arthur Rodrigues <[email protected]>
AuthorDate: Tue Feb 10 18:03:24 2026 -0300
gnu: Add go-github-com-foxcpp-go-mockdns.
* gnu/packages/golang-web.scm (go-github-com-foxcpp-go-mockdns): New
variable.
Change-Id: I5af4ffd07a1adedcab3f2d1bb2753d841c9a59d7
Signed-off-by: Sharlatan Hellseher <[email protected]>
---
gnu/packages/golang-web.scm | 30 ++++++++++++++++++++++++++++++
1 file changed, 30 insertions(+)
diff --git a/gnu/packages/golang-web.scm b/gnu/packages/golang-web.scm
index 3bd383f3ec..908689d383 100644
--- a/gnu/packages/golang-web.scm
+++ b/gnu/packages/golang-web.scm
@@ -375,6 +375,36 @@ API service accounts for Go.")
transient error handling.")
(license license:bsd-2)))
+(define-public go-github-com-foxcpp-go-mockdns
+ (package
+ (name "go-github-com-foxcpp-go-mockdns")
+ (version "1.2.0")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/foxcpp/go-mockdns")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "1jjln1bjgvh8g6r508vygjfm6h125q8yn4ynvldcd8npg4sj5z5h"))))
+ (build-system go-build-system)
+ (arguments
+ (list
+ #:import-path "github.com/foxcpp/go-mockdns"
+ ;; FollowCNAMEs test is not deterministic in v1.2.0,
+ ;; commit 1de4693e67 fixes this. Consider removing this skip
+ ;; in a future update.
+ #:test-flags #~(list "-skip" "TestServer_FollowCNAMEs")))
+ (propagated-inputs (list go-github-com-miekg-dns))
+ (home-page "https://github.com/foxcpp/go-mockdns")
+ (synopsis "DNS mock for Golang")
+ (description
+ "This package provides Golang boilerplate for testing code
+involving DNS lookups, including hacks to redirect @code{net.Lookup*}
+calls.")
+ (license license:expat)))
+
(define-public go-github-com-go-rod-rod
(package
(name "go-github-com-go-rod-rod")