bug: Permission defined on commands
Victorcorcos opened this issue · 1 comments
Victorcorcos commented
Describe the Bug
When I run asdf reshim ruby
, I receive a permission denied on some filepaths. How can I fix this by letting asdf
have access to them?
$ asdf reshim ruby
/usr/local/opt/asdf/libexec/lib/commands/reshim.bash: line 104: /Users/victorcosta/.asdf/shims/nokogiri: Permission denied
/usr/local/opt/asdf/libexec/lib/commands/reshim.bash: line 104: /Users/victorcosta/.asdf/shims/rackup: Permission denied
/usr/local/opt/asdf/libexec/lib/commands/reshim.bash: line 104: /Users/victorcosta/.asdf/shims/rails: Permission denied
/usr/local/opt/asdf/libexec/lib/commands/reshim.bash: line 104: /Users/victorcosta/.asdf/shims/thor: Permission denied
/usr/local/opt/asdf/libexec/lib/commands/reshim.bash: line 104: /Users/victorcosta/.asdf/shims/nokogiri: Permission denied
/usr/local/opt/asdf/libexec/lib/commands/reshim.bash: line 104: /Users/victorcosta/.asdf/shims/rackup: Permission denied
/usr/local/opt/asdf/libexec/lib/commands/reshim.bash: line 104: /Users/victorcosta/.asdf/shims/rails: Permission denied
/usr/local/opt/asdf/libexec/lib/commands/reshim.bash: line 104: /Users/victorcosta/.asdf/shims/thor: Permission denied
Steps to Reproduce
asdf reshim ruby
Expected Behaviour
It should have permission to .asdf
file paths.
Actual Behaviour
It does not have permission to .asdf
file paths.
Environment
$ asdf info
OS:
Darwin Victors-MacBook-Pro.local 20.6.0 Darwin Kernel Version 20.6.0: Thu Mar 9 20:39:26 PST 2023; root:xnu-7195.141.49.700.6~1/RELEASE_X86_64 x86_64
SHELL:
GNU bash, version 3.2.57(1)-release (x86_64-apple-darwin20)
Copyright (C) 2007 Free Software Foundation, Inc.
BASH VERSION:
3.2.57(1)-release
ASDF VERSION:
v0.12.0
ASDF INTERNAL VARIABLES:
ASDF_DEFAULT_TOOL_VERSIONS_FILENAME=.tool-versions
ASDF_DATA_DIR=/Users/victorcosta/.asdf
ASDF_DIR=/usr/local/opt/asdf/libexec
ASDF_CONFIG_FILE=/Users/victorcosta/.asdfrc
ASDF INSTALLED PLUGINS:
python https://github.com/tuvistavie/asdf-python.git master 8505457
ruby https://github.com/asdf-vm/asdf-ruby.git master 8cb9721
asdf plugins affected (if relevant)
$ asdf info
OS:
Darwin Victors-MacBook-Pro.local 20.6.0 Darwin Kernel Version 20.6.0: Thu Mar 9 20:39:26 PST 2023; root:xnu-7195.141.49.700.6~1/RELEASE_X86_64 x86_64
SHELL:
GNU bash, version 3.2.57(1)-release (x86_64-apple-darwin20)
Copyright (C) 2007 Free Software Foundation, Inc.
BASH VERSION:
3.2.57(1)-release
ASDF VERSION:
v0.12.0
ASDF INTERNAL VARIABLES:
ASDF_DEFAULT_TOOL_VERSIONS_FILENAME=.tool-versions
ASDF_DATA_DIR=/Users/victorcosta/.asdf
ASDF_DIR=/usr/local/opt/asdf/libexec
ASDF_CONFIG_FILE=/Users/victorcosta/.asdfrc
ASDF INSTALLED PLUGINS:
python https://github.com/tuvistavie/asdf-python.git master 8505457
ruby https://github.com/asdf-vm/asdf-ruby.git master 8cb9721
Victorcorcos commented
Solution
sudo chown -R $(whoami) /Users/victorcosta/.asdf/shims
Fixed it