tristanisham/zvm

[BUG] zvm upgrade crashed

xiaods opened this issue · 2 comments

Describe the bug
run zvm upgrade crashed

To Reproduce
Steps to reproduce the behavior:

  1. Run zvm upgrade
  2. See error below:
xiaods@ZBBB2006M-0032 ~/code/build-nfs-ganesha $ zvm version
zvm v0.6.7 linux/amd64
xiaods@ZBBB2006M-0032 ~/code/build-nfs-ganesha $ zvm upgrade
You are on ZVM v0.6.7... upgrading to (v0.7.1)panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x40 pc=0x78f575]

goroutine 1 [running]:
github.com/tristanisham/zvm/cli.(*ZVM).Upgrade(0xc000030740)
        github.com/tristanisham/zvm/cli/upgrade.go:74 +0x495
main.main()
        github.com/tristanisham/zvm/main.go:175 +0x756

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: Ubuntu wsl on win10
  • Architecture x86_64
  • Version v0.6.7

Configuration:

Additional context

Huh, that's so weird. Might have already fixed in the latest release. I'd suggest reinstalling ZVM with the install script. Unless you've customized the install location or any of the default environment variables, you should just be able to delete ~/.zvm and rerun the one liner to upgrade to the new version.

Huh, that's so weird. Might have already fixed in the latest release. I'd suggest reinstalling ZVM with the install script. Unless you've customized the install location or any of the default environment variables, you should just be able to delete ~/.zvm and rerun the one liner to upgrade to the new version.

Yes, I have reinstalled the ZVM and manually replaced it.