mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-24 21:38:07 -05:00
gnu: go-github-com-spf13-pflag: Fix building with newer go.
* gnu/packages/golang.scm (go-github-com-spf13-pflag)[source]: Add snippet to fix test suite with newer versions of go.
This commit is contained in:
parent
66a6c516e2
commit
3584cff93d
1 changed files with 11 additions and 2 deletions
|
@ -1,5 +1,5 @@
|
|||
;;; GNU Guix --- Functional package management for GNU
|
||||
;;; Copyright © 2016, 2017, 2018, 2019, 2020, 2021, 2022 Efraim Flashner <efraim@flashner.co.il>
|
||||
;;; Copyright © 2016-2023 Efraim Flashner <efraim@flashner.co.il>
|
||||
;;; Copyright © 2016 Matthew Jordan <matthewjordandevops@yandex.com>
|
||||
;;; Copyright © 2016 Andy Wingo <wingo@igalia.com>
|
||||
;;; Copyright © 2016, 2019, 2021 Ludovic Courtès <ludo@gnu.org>
|
||||
|
@ -4134,7 +4134,16 @@ (define-public go-github-com-spf13-pflag
|
|||
(file-name (git-file-name name version))
|
||||
(sha256
|
||||
(base32
|
||||
"0gpmacngd0gpslnbkzi263f5ishigzgh6pbdv9hp092rnjl4nd31"))))
|
||||
"0gpmacngd0gpslnbkzi263f5ishigzgh6pbdv9hp092rnjl4nd31"))
|
||||
(snippet
|
||||
#~(begin
|
||||
(use-modules (guix build utils))
|
||||
;; Fix compatibility with go-1.19+
|
||||
;; https://github.com/spf13/pflag/issues/368
|
||||
(substitute* "flag_test.go"
|
||||
(("fmt\\.Println") "fmt.Print")
|
||||
(("\\+ got\\)") "+ got + \"\\n\")")
|
||||
(("\\+ defaultOutput\\)") "+ defaultOutput + \"\\n\")"))))))
|
||||
(build-system go-build-system)
|
||||
(arguments
|
||||
'(#:import-path "github.com/spf13/pflag"))
|
||||
|
|
Loading…
Reference in a new issue