[BUG]: The command `vfox install dart@latest` currently fails
Opened this issue · 1 comments
dezlymacauley commented
Version
vfox version 0.6.10
OS
Arch Linux
Describe the bug
The command vfox install dart@latest currently fails
Screenshots[optional]
❯ vfox --version
vfox version 0.6.10
❯ vfox upgrade
Current version: v0.6.10
Latest available: v0.6.10
vfox is already up to date.
I already ran this before
❯ vfox add dart
plugin named dart already exists
❯ vfox update dart
Checking plugin manifest...
dart is already the latest version
~
This is where it fails
❯ vfox install dart@latest
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x10 pc=0x978fc3]
goroutine 1 [running]:
github.com/version-fox/vfox/internal.(*Sdk).Install(0xc000285c80, {0x7ffea50359c2, 0x6})
github.com/version-fox/vfox/internal/sdk.go:105 +0x123
github.com/version-fox/vfox/cmd/commands.installCmd(0xc00020a040)
github.com/version-fox/vfox/cmd/commands/install.go:95 +0x3f2
github.com/urfave/cli/v2.(*Command).Run(0x101b0e0, 0xc00020a040, {0xc00007d180, 0x2, 0x2})
github.com/urfave/cli/v2@v2.27.1/command.go:279 +0x7e2
github.com/urfave/cli/v2.(*Command).Run(0xc000174420, 0xc00003fb80, {0xc000022120, 0x3, 0x3})
github.com/urfave/cli/v2@v2.27.1/command.go:272 +0xa65
github.com/urfave/cli/v2.(*App).RunContext(0xc00018e200, {0xb99e28, 0x10499a0}, {0xc000022120, 0x3, 0x3})
github.com/urfave/cli/v2@v2.27.1/app.go:337 +0x58b
github.com/urfave/cli/v2.(*App).Run(...)
github.com/urfave/cli/v2@v2.27.1/app.go:311
github.com/version-fox/vfox/cmd.(*cmd).Execute(0x0?, {0xc000022120?, 0x0?, 0x68?})
github.com/version-fox/vfox/cmd/cmd.go:39 +0x32
github.com/version-fox/vfox/cmd.Execute({0xc000022120, 0x3, 0x3})
github.com/version-fox/vfox/cmd/cmd.go:30 +0x39
main.main()
github.com/version-fox/vfox/main.go:25 +0x28
dezlymacauley commented
I have installed clang, and golang using these same steps and they work. So this is an issue specific to installing Dart
❯ vfox list
All installed sdk versions
├─┬clang
│ └──v20.1.8
├──dart
└─┬golang
└──v1.25.0