mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2025-01-24 03:29:40 -05:00
gnu: Add go-k8s-io-klog.
* gnu/packages/golang-xyz.scm (go-k8s-io-klog): New variable. Change-Id: I5985ef3f9342fb1cc671c3d113cef78785650548
This commit is contained in:
parent
48f7e826d2
commit
838377c4d7
1 changed files with 38 additions and 0 deletions
|
@ -6709,6 +6709,44 @@ (define-public go-gopkg-in-yaml-v2
|
||||||
values.")
|
values.")
|
||||||
(license license:asl2.0)))
|
(license license:asl2.0)))
|
||||||
|
|
||||||
|
(define-public go-k8s-io-klog
|
||||||
|
(package
|
||||||
|
(name "go-k8s-io-klog")
|
||||||
|
(version "1.0.0")
|
||||||
|
(source
|
||||||
|
(origin
|
||||||
|
(method git-fetch)
|
||||||
|
(uri (git-reference
|
||||||
|
(url "https://github.com/kubernetes/klog")
|
||||||
|
(commit (string-append "v" version))))
|
||||||
|
(file-name (git-file-name name version))
|
||||||
|
(sha256
|
||||||
|
(base32 "1cgannfmldcrcksb2wqdn2b5qabqyxl9r25w9y4qbljw24hhnlvn"))))
|
||||||
|
(build-system go-build-system)
|
||||||
|
(arguments
|
||||||
|
(list
|
||||||
|
#:import-path "k8s.io/klog"
|
||||||
|
#:phases
|
||||||
|
#~(modify-phases %standard-phases
|
||||||
|
(add-after 'unpack 'disable-failing-tests
|
||||||
|
(lambda* (#:key tests? import-path #:allow-other-keys)
|
||||||
|
(with-directory-excursion (string-append "src/" import-path)
|
||||||
|
(substitute* (find-files "." "\\_test.go$")
|
||||||
|
;; Disable test requiring write access to creat test files.
|
||||||
|
(("TestRollover") "OffTestRollover"))))))))
|
||||||
|
(propagated-inputs
|
||||||
|
(list go-github-com-go-logr-logr))
|
||||||
|
(home-page "https://github.com/kubernetes/klog")
|
||||||
|
(synopsis "Leveled execution logs for Go")
|
||||||
|
(description
|
||||||
|
"Package klog implements logging analogous to the Google-internal C++
|
||||||
|
INFO/ERROR/V setup. It provides functions @code{Info}, @code{Warning},
|
||||||
|
@code{Error}, @code{Fatal}, plus formatting variants such as @code{Infof}. It
|
||||||
|
also provides V-style logging controlled by the @code{-v} and
|
||||||
|
@code{-vmodule=file=2} flags. It's a is a permanent fork of
|
||||||
|
@code{https://github.com/golang/glog}.")
|
||||||
|
(license license:asl2.0)))
|
||||||
|
|
||||||
(define-public go-mvdan-cc-editorconfig
|
(define-public go-mvdan-cc-editorconfig
|
||||||
(package
|
(package
|
||||||
(name "go-mvdan-cc-editorconfig")
|
(name "go-mvdan-cc-editorconfig")
|
||||||
|
|
Loading…
Reference in a new issue