-
Notifications
You must be signed in to change notification settings - Fork 514
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ERROR: Unrecognized command line argument: 'use' #188
Comments
got the same issue, cannot figure out why. |
I am deploying go app from def deploy():
local('gvm use go1.6')
# do something to deploy However it is not able to use specific version go. Please help to resolve this issue. |
Try this out, I just added it to my config with the same issues and seems to be working now. FILE: ~/.gvm/scripts/gvm-default
|
Running into the same thing here when I try to setup gvm from a bash script. |
I peeked a little more. The issue is in the code that checks to see if subcommands are valid:
(looking for scripts/use which doesn't exist, the script does exist at $GVM_ROOT/scripts/env/use) what is the difference between these two directories? |
Same issue here. When trying to run bash shell scripts via the vagrant non-privileged user (vagrant user). @bodepd did you ever resolve the issue? |
I have same issue. When i use the 'gvm use' or 'gvm pkgset use' in bash script, the error is occur |
Are you guys installed 'zsh' version but using in 'bash' or instead? |
Same error on my machine, a fresh macOS 10.12 Sierra install. Using bash 4.4 from Homebrew, and the provided gvm bash curl install command. I think direnv is getting in the way, see direnv/direnv#128. |
I'm also struggling with the same problem when trying to use
|
Using Ubuntu 14.04 and default terminal. on executing But fails with the above error, if the command is used in a makefile or shell script. |
+1 I've made a wonderful, wonderful Ansible automation role which doesn't seem to work, but executing from the shell works fine. Here's the output - but I really want a solution so I can publish this for the world (and me) to use.
|
same error here, raspberian works from terminal but not from shell or python code ! |
this is a base shell script. has the ERROR: Unrecognized command line argument: 'use' issue. |
restart your terminal or source ~/.gvm/scripts/gvm |
This is still happening! Doesn't seem to work in a Makefile even after sourcing gvm. |
This fixed my Jenkins build, but having to do it manually looks weird. Before that I also tried to use a local zsh by adding #!/usr/bin/zsh to my shell script, but I'm still getting the "Unrecognized command line argument: 'use'" message. |
Encountering it on A temporary fix would be to |
it works for me |
After previously having successfully run
gvm use go1.6
:The text was updated successfully, but these errors were encountered: