Running with no args produces panic #346

Closed
opened 2025-12-29 01:27:25 +01:00 by adam · 1 comment
Owner

Originally created by @rosejn on GitHub (Oct 6, 2022).

Using the latest v0.17.0-alpha4 release if you run headscale with no command line args it produces an error rather than the help text as in previous versions:

$ ./headscale
panic: runtime error: index out of range [1] with length 1

goroutine 1 [running]:
github.com/juanfont/headscale/cmd/headscale/cli.init.8()
/home/runner/work/headscale/headscale/cmd/headscale/cli/root.go:18 +0x26f

Originally created by @rosejn on GitHub (Oct 6, 2022). Using the latest v0.17.0-alpha4 release if you run headscale with no command line args it produces an error rather than the help text as in previous versions: $ ./headscale panic: runtime error: index out of range [1] with length 1 goroutine 1 [running]: github.com/juanfont/headscale/cmd/headscale/cli.init.8() /home/runner/work/headscale/headscale/cmd/headscale/cli/root.go:18 +0x26f
adam added the bug label 2025-12-29 01:27:25 +01:00
adam closed this issue 2025-12-29 01:27:26 +01:00
Author
Owner

@doebi commented on GitHub (Oct 22, 2022):

This is still present in the latest docker image. How frequently do you intend to update hub.docker.com?

@doebi commented on GitHub (Oct 22, 2022): This is still present in the latest docker image. How frequently do you intend to update hub.docker.com?
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/headscale#346