1
Fork 0
mirror of https://https.git.savannah.gnu.org/git/guix.git/ synced 2025-07-16 12:00:35 +02:00

gnu: Add go-k8s-io-gengo-v2.

* gnu/packages/golang-xyz.scm (go-k8s-io-gengo-v2): New variable.

Change-Id: I5323b24712aa7e9f32110a3d99e9a217b00764da
This commit is contained in:
Sharlatan Hellseher 2024-12-15 20:02:30 +00:00
parent 79ef3b207e
commit cd9c90e714
No known key found for this signature in database
GPG key ID: 76D727BFF62CD2B5

View file

@ -10550,6 +10550,51 @@ machine readable. It is modeled after the Go standard library's @code{io} and
values.")
(license license:asl2.0)))
(define-public go-k8s-io-gengo-v2
(package
(name "go-k8s-io-gengo-v2")
(version "2.0.0-20240911193312-2b36238f13e9")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/kubernetes/gengo")
(commit (go-version->git-ref version))))
(file-name (git-file-name name version))
(sha256
(base32 "0ffwigrg92ivyb5r6g0alb4z8iydp9lkdviz3vm62gr89yw28yc7"))))
(build-system go-build-system)
(arguments
(list
#:import-path "k8s.io/gengo/v2"
#:unpack-path "k8s.io/gengo"
#:test-flags
;; XXX: Figure out why these tests fail.
#~(list "-skip" (string-join
(list "TestSnippetWriter"
"TestFindPackages"
"TestAlreadyLoaded"
"TestLoadPackagesInternal"
"TestLoadPackagesTo"
"TestUserRequestedPackages"
"TestAddOnePkgToUniverse"
"TestStructParse/generic"
"TestJSON")
"|"))))
(native-inputs
(list go-github-com-google-go-cmp))
(propagated-inputs
(list go-github-com-spf13-pflag
go-golang-org-x-tools
go-k8s-io-klog-v2))
(home-page "https://github.com/kubernetes/gengo")
(synopsis "Framework for building simple code generators")
(description
"This package implements a functionality for generating things based on
go files. This mechanism was first used in Kubernetes code-generator and is
split out here for ease of reuse and maintainability.")
(license license:asl2.0)))
(define-public go-k8s-io-klog
(package
(name "go-k8s-io-klog")