When trying to connect to one of our containers, I got this error.
🏂 ecs-tool ssh -e staging
INFO[0000] Using config file: /redacted_path/config_file.toml
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x2 addr=0x50 pc=0x105122960]
goroutine 1 [running]:
github.com/spf13/viper.pflagValue.HasChanged({0x1059d21c0?})
/home/runner/go/pkg/mod/github.com/spf13/viper@v1.0.2/flags.go:41
github.com/spf13/viper.(*Viper).find(0x140004b6000, {0x105620b2a, 0x13})
/home/runner/go/pkg/mod/github.com/spf13/viper@v1.0.2/viper.go:914 +0x1ac
github.com/spf13/viper.(*Viper).Get(0x140004b6000, {0x105620b2a?, 0x0?})
/home/runner/go/pkg/mod/github.com/spf13/viper@v1.0.2/viper.go:615 +0x44
github.com/spf13/viper.(*Viper).GetString(0x14000583040?, {0x105620b2a?, 0x0?})
/home/runner/go/pkg/mod/github.com/spf13/viper@v1.0.2/viper.go:670 +0x20
github.com/spf13/viper.GetString(...)
/home/runner/go/pkg/mod/github.com/spf13/viper@v1.0.2/viper.go:668
github.com/springload/ecs-tool/cmd.glob..func9(0x140001d0b00?, {0x10561375d?, 0x4?, 0x105613761?})
/home/runner/work/ecs-tool/ecs-tool/cmd/ssh.go:26 +0xdc
github.com/spf13/cobra.(*Command).execute(0x1060ecac0, {0x14000512140, 0x2, 0x2})
/home/runner/go/pkg/mod/github.com/spf13/cobra@v0.0.3/command.go:766 +0x550
github.com/spf13/cobra.(*Command).ExecuteC(0x1060ec3a0)
/home/runner/go/pkg/mod/github.com/spf13/cobra@v0.0.3/command.go:852 +0x274
github.com/spf13/cobra.(*Command).Execute(...)
/home/runner/go/pkg/mod/github.com/spf13/cobra@v0.0.3/command.go:800
github.com/springload/ecs-tool/cmd.Execute({0x1058f1740?, 0x140000021a0?})
/home/runner/work/ecs-tool/ecs-tool/cmd/root.go:34 +0x54
main.main()
/home/runner/work/ecs-tool/ecs-tool/main.go:8 +0x2c
OS: macOS Tahoe 26.4.1 (25E253)
ecs-tool version: 1.9.8
When trying to connect to one of our containers, I got this error.
I've downgraded to version 1.9.7 until this is fixed 😊