summaryrefslogtreecommitdiff
path: root/gnu/packages/patches
diff options
context:
space:
mode:
authorSharlatan Hellseher <[email protected]>2024-11-24 18:11:08 +0000
committerSharlatan Hellseher <[email protected]>2025-01-21 23:41:45 +0000
commitb789eff407015c35a95cd35c1fe78515dc3efd5b (patch)
tree6d750f78875b70568d2d92644076401081a1ae87 /gnu/packages/patches
parent94cefaab3af82f96e2e7a910627a0f393c2b5446 (diff)
gnu: go-github-com-urfave-cli-v2: Update to 2.27.5.
* gnu/packages/golang.scm (go-github-com-urfave-cli-v2): Update to 2.27.5. [source]<patches>: Remove patch as no longer required. [propagated-inputs]: Add go-github-com-burntsushi-toml, go-github-com-go-md2man, go-github-com-xrash-smetrics, and go-gopkg-in-yaml-v3. * gnu/packages/patches/go-github-com-urfave-cli-fix-v2-tests.patch: Delete file. * gnu/local.mk: Deregister patch. Change-Id: I18c5b778b18d44bb8a6508440174cd87f5ec390a
Diffstat (limited to 'gnu/packages/patches')
-rw-r--r--gnu/packages/patches/go-github-com-urfave-cli-v2-fix-tests.patch37
1 files changed, 0 insertions, 37 deletions
diff --git a/gnu/packages/patches/go-github-com-urfave-cli-v2-fix-tests.patch b/gnu/packages/patches/go-github-com-urfave-cli-v2-fix-tests.patch
deleted file mode 100644
index 87ccc2b655..0000000000
--- a/gnu/packages/patches/go-github-com-urfave-cli-v2-fix-tests.patch
+++ /dev/null
@@ -1,37 +0,0 @@
-From upstream PR: https://github.com/urfave/cli/pull/1299
-
-From: William Wilson <[email protected]>
-Date: Tue, 31 Aug 2021 14:19:17 -0500
-Subject: Make test case compatible with Go 1.17
-
-As of Go 1.17, the go flag package will panic if given a syntactically invalid
-flag. This causes TestApp_RunAsSubCommandIncorrectUsage to panic and therefore
-fail. See https://golang.org/doc/go1.17#flag for more information.
-
----
-diff --git a/app_test.go b/app_test.go
-index 7c38f6048..76e211d68 100644
---- a/app_test.go
-+++ b/app_test.go
-@@ -476,18 +476,18 @@ func TestApp_RunAsSubCommandIncorrectUsage(t *testing.T) {
- a := App{
- Name: "cmd",
- Flags: []Flag{
-- &StringFlag{Name: "--foo"},
-+ &StringFlag{Name: "foo"},
- },
- Writer: bytes.NewBufferString(""),
- }
-
- set := flag.NewFlagSet("", flag.ContinueOnError)
-- _ = set.Parse([]string{"", "---foo"})
-+ _ = set.Parse([]string{"", "-bar"})
- c := &Context{flagSet: set}
-
- err := a.RunAsSubcommand(c)
-
-- expect(t, err, errors.New("bad flag syntax: ---foo"))
-+ expect(t, err.Error(), "flag provided but not defined: -bar")
- }
-
- func TestApp_CommandWithFlagBeforeTerminator(t *testing.T) {