Error flyctl after upgrading 0.0.248 -> v0.0.249 (mac homebrew)

Getting the following error when trying to run flyctl after upgrading flyctl from 0.0.248 → v0.0.249

panic: runtime error: invalid memory address or nil pointer dereference

[signal SIGSEGV: segmentation violation code=0x1 addr=0x8 pc=0x1c43f23]

goroutine 1 [running]:{0x21dcda8, 0xc000281340})

/home/runner/work/flyctl/flyctl/internal/update/check.go:78 +0x3e3

/home/runner/work/flyctl/flyctl/main.go:43 +0xe5


/home/runner/work/flyctl/flyctl/main.go:25 +0x45

@Michael @rugwirobaker I’m moving this to an issue on the repo.

There’s already an issue and a fix being built handle nil version during update check · superfly/flyctl@7a90db9 · GitHub

1 Like

Thanks @user34, we’ll check this out. Could you share the command you were trying to run? Or do you see this on every command?

I get it on every command

1 Like

@user34 This has been fixed now. Please do rm ~/.fly/state.yml to clear the version cache and then flyctl version update to get the fixed version (0.0.250).