tristanisham / zvm

zvm (Zig Version Manager) lets you easily install/upgrade between different versions of Zig.
https://www.zvm.app
MIT License
476 stars 32 forks source link

[BUG] FreeBSD reporting unsupported system for Zig #77

Open Korab-Doroci opened 7 months ago

Korab-Doroci commented 7 months ago

Describe the bug Using NomadBSD which is a freeBSD derivative zvm returns unsupported system even though I can install zig perfectly fine using pkg.

To Reproduce

  1. Run zvm install master
  2. See error: unsupported system for Zig

Expected behavior To install zig

Screenshots error

Desktop (please complete the following information):

Configuration:

Additional context NomadBSD is a live os, hense im booting from a usb.

tristanisham commented 6 months ago

Hey @Korab-Doroci, thanks for reporting this issue. I'll take a look into it. Obviously this is expected behavior. What version of zvm are you using?

tristanisham commented 6 months ago

Could you please run ZVM_DEBUG=true zvm i master and upload the output?

tristanisham commented 4 months ago

So when I first saw this, I didn't notice you weren't using an unsupported platform. ZVM uses Go's wide platform support and translates

aix/ppc64 android/386 android/amd64 android/arm android/arm64 darwin/amd64 darwin/arm64 dragonfly/amd64 freebsd/386 freebsd/amd64 freebsd/arm freebsd/arm64 freebsd/riscv64 illumos/amd64 ios/amd64 ios/arm64 js/wasm linux/386 linux/amd64 linux/arm linux/arm64 linux/loong64 linux/mips linux/mips64 linux/mips64le linux/mipsle linux/ppc64 linux/ppc64le linux/riscv64 linux/s390x netbsd/386 netbsd/amd64 netbsd/arm netbsd/arm64 openbsd/386 openbsd/amd64 openbsd/arm openbsd/arm64 openbsd/ppc64 plan9/386 plan9/amd64 plan9/arm solaris/amd64 wasip1/wasm windows/386 windows/amd64 windows/arm windows/arm64

I'll add some new functionality to allow user's to specify their install manually regardless of the consequences. @Korab-Doroci it'll be worked on in the user-spec-install branch.

Korab-Doroci commented 4 months ago

Thanks!