fix: pin github.com/urfave/cli to v3.5.0 (#10828)

Upgrading to v3.6.1 breaks `--help`

```
$ forgejo forgejo-cli --help
Incorrect Usage: flag provided but not defined: -help
```

### Testing

```
$ make forgejo
$ ./forgejo forgejo-cli --help
NAME:
   forgejo forgejo-cli - Forgejo CLI

USAGE:
   forgejo forgejo-cli [command [command options]]

COMMANDS:
   actions  Commands for managing Forgejo Actions
   f3       F3
```

Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/10828
Reviewed-by: Gusted <gusted@noreply.codeberg.org>
Reviewed-by: Michael Kriese <michael.kriese@gmx.de>
Co-authored-by: limiting-factor <limiting-factor@posteo.com>
Co-committed-by: limiting-factor <limiting-factor@posteo.com>
This commit is contained in:
limiting-factor 2026-01-15 11:05:02 +01:00 committed by Gusted
parent 635d55043f
commit 1a4c5cd690
3 changed files with 9 additions and 2 deletions

View file

@ -108,6 +108,11 @@ func TestCliCmd(t *testing.T) {
cmd: "./gitea test-cmd --config /tmp/app-other.ini",
exp: makePathOutput("/tmp", "/tmp/custom", "/tmp/app-other.ini"),
},
{
env: map[string]string{"GITEA_WORK_DIR": "/tmp"},
cmd: "./gitea forgejo-cli --help",
exp: "(subcommand help template)",
},
}
for _, c := range cases {