sharlatan pushed a commit to branch go-team
in repository guix.
commit 304d2a8e0c9543c213c7059b06166b29076c2405
Author: Sharlatan Hellseher <[email protected]>
AuthorDate: Mon Dec 30 10:18:35 2024 +0000
gnu: Remove go-gopkg-in-go-playground-validator-v9.
The package with v9 has no dependents and fails to build, remove it and
overwrite definition with v10.
* gnu/packages/golang.scm (go-gopkg-in-go-playground-validator-v9):
Delete variable.
(go-github-com-go-playground-validator-v10): Overwrite package
definition of v9.
[propagated-inputs]: Add go-github-com-go-playground-locales.
Change-Id: I622d6ccb1cad7fdb038adb9523e74ba1ae4209a5
---
gnu/packages/golang.scm | 48 +++++++++++++-----------------------------------
1 file changed, 13 insertions(+), 35 deletions(-)
diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm
index 066bc81f43..a693e36fb5 100644
--- a/gnu/packages/golang.scm
+++ b/gnu/packages/golang.scm
@@ -2165,11 +2165,11 @@ professionally translated
@end itemize")
(license license:expat)))
-(define-public go-gopkg-in-go-playground-validator-v9
+(define-public go-github-com-go-playground-validator-v10
(package
- (name "go-gopkg-in-go-playground-validator-v9")
- (version "9.31.0")
- (home-page "https://gopkg.in/go-playground/validator.v9")
+ (name "go-github-com-go-playground-validator-v10")
+ (version "10.22.0")
+ (home-page "https://github.com/go-playground/validator")
(source
(origin
(method git-fetch)
@@ -2178,15 +2178,19 @@ professionally translated
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
- (base32 "1f8c77s8kx9rip2jarv27x5s4xkcmanh4ndyhbcwvrhncs5rq061"))))
+ (base32 "0zff0qpqfzwa4xazppiq7jvpncnmx52m23qi4ih754b7rzhbk0iz"))))
(build-system go-build-system)
(arguments
- '(#:import-path "gopkg.in/go-playground/validator.v9"))
+ '(#:import-path "github.com/go-playground/validator/v10"))
(native-inputs
- (list go-gopkg-in-go-playground-assert-v1))
+ (list go-github-com-go-playground-assert-v2))
(propagated-inputs
- (list go-github-com-go-playground-universal-translator
- go-github-com-leodido-go-urn))
+ (list go-github-com-gabriel-vasile-mimetype
+ go-github-com-go-playground-locales
+ go-github-com-go-playground-universal-translator
+ go-github-com-leodido-go-urn
+ go-golang-org-x-crypto
+ go-golang-org-x-text))
(synopsis "Validator for structs and individual fields based on tags")
(description
"This package implements value validations for structs and individual
@@ -2212,32 +2216,6 @@ web framework
@end itemize")
(license license:expat)))
-(define-public go-github-com-go-playground-validator-v10
- (package
- (inherit go-gopkg-in-go-playground-validator-v9)
- (name "go-github-com-go-playground-validator-v10")
- (version "10.22.0")
- (source (origin
- (method git-fetch)
- (uri (git-reference
- (url "https://github.com/go-playground/validator")
- (commit (string-append "v" version))))
- (file-name (git-file-name name version))
- (sha256
- (base32
- "0zff0qpqfzwa4xazppiq7jvpncnmx52m23qi4ih754b7rzhbk0iz"))))
- (arguments
- (list
- #:import-path "github.com/go-playground/validator/v10"))
- (propagated-inputs
- (modify-inputs (package-propagated-inputs
- go-gopkg-in-go-playground-validator-v9)
- (append go-github-com-gabriel-vasile-mimetype
- go-golang-org-x-crypto
- go-golang-org-x-text)))
- (native-inputs
- (list go-github-com-go-playground-assert-v2))))
-
(define-public go-github-com-nathan-osman-go-sunrise
(let ((commit "c8f9f1eb869135f07378e7e3c5ec7a005f806c73")
(revision "0"))