Source: rootlesskit
Version: 0.14.6-1
Severity: normal

rootlesskit uses the "nindent" template function in its help output.
This wasn't added to golang-github-urfave-cli-v2 until version 2.3:

See: https://github.com/urfave/cli/commit/be9c0378

$ git tag --contains be9c0378
v2.3.0

rootlesskit compiles fine with cli 2.2.0-3, but fails at runtime:

$ rootlesskit -h
panic: template: help:11: function "trim" not defined

goroutine 1 [running]:
text/template.Must(...)
        text/template/helper.go:23
github.com/urfave/cli/v2.printHelpCustom(0x9adb40, 0xc000010020, 0xc000156000, 
0xb8b, 0x8ec480, 0xc000001b00, 0x0)
        github.com/urfave/cli/v2/help.go:273 +0x50b
github.com/urfave/cli/v2.printHelp(0x9adb40, 0xc000010020, 0xc000156000, 0xb8b, 
0x8ec480, 0xc000001b00)
        github.com/urfave/cli/v2/help.go:288 +0x6d
github.com/urfave/cli/v2.ShowAppHelp(0xc000060f00, 0xc00008ec01, 0x38)
        github.com/urfave/cli/v2/help.go:81 +0x190
github.com/urfave/cli/v2.(*App).RunContext(0xc000001b00, 0x9b6c00, 
0xc000022060, 0xc00000e080, 0x2, 0x2, 0x0, 0x0)
        github.com/urfave/cli/v2/app.go:263 +0xa59
github.com/urfave/cli/v2.(*App).Run(...)
        github.com/urfave/cli/v2/app.go:215
main.main()
        github.com/rootless-containers/rootlesskit/cmd/rootlesskit/main.go:221 
+0x1fb8

I therefore suggest versioning the build-dep to e.g. (>= 2.3.0).

-- System Information:
Debian Release: bookworm/sid
  APT prefers unstable-debug
  APT policy: (500, 'unstable-debug'), (500, 'unstable'), (1, 
'experimental-debug'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 5.17.0-rc4-amd64 (SMP w/4 CPU threads; PREEMPT)
Kernel taint flags: TAINT_FIRMWARE_WORKAROUND, TAINT_UNSIGNED_MODULE
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Reply via email to