moovweb / gvm

Go Version Manager
http://github.com/moovweb/gvm
MIT License
9.88k stars 520 forks source link

ERROR: Unrecognized command line argument: 'use' on Mac M1 #395

Open cuishuang opened 2 years ago

cuishuang commented 2 years ago

gvm version

Go Version Manager v1.0.22 installed at /Users/myname/.gvm

gvm install go1.17

gvm list

gvm gos (installed)

go1.17 system

gvm use go1.17

ERROR: Unrecognized command line argument: 'use'


RobotSail commented 2 years ago

I'm having this issue too on x86_64

woodgear commented 2 years ago

same in linux, ubuntu 20.04

woodgear commented 2 years ago

seems like you need to source ~/.gvm/scripts/gvm first

cuishuang commented 2 years ago

seems like you need to source ~/.gvm/scripts/gvm first

Thanks

soulteary commented 2 years ago

Maybe this will help you: https://github.com/moovweb/gvm/issues/406

ankitcharolia commented 11 months ago

@cuishuang @woodgear @RobotSail kindly try this GO Version Manager: https://github.com/ankitcharolia/goenv

soulteary commented 9 months ago

@cuishuang @woodgear @RobotSail kindly try this GO Version Manager: https://github.com/ankitcharolia/goenv

ref: https://github.com/moovweb/gvm/issues/406#issuecomment-1717350488

Please confirm that your solution is universally applicable to ARM, x86 and other architectures. This issue discusses the use of software under the ARM architecture. The version you are currently releasing is the x86 version.