Skip to content
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

bug: asdf reshim does not create the shims folder #1891

Open
MihaiOnSoftware opened this issue Feb 5, 2025 · 1 comment
Open

bug: asdf reshim does not create the shims folder #1891

MihaiOnSoftware opened this issue Feb 5, 2025 · 1 comment
Labels

Comments

@MihaiOnSoftware
Copy link

Describe the Bug

Version 0.16.1
macOS 15.3
Installed via Homebrew

If you're missing the shims folder running asdf reshim should recreate the folder, however it no longer does so.

Steps to Reproduce

  1. Run mv ~/.asdf/shims ~/.asdf/shims.bak
  2. Run asdf reshim
  3. See that ~/.asdf/shims does not exist and no shims are created
  4. Run mkdir ~/.asdf/shims
  5. Run asdf reshim
  6. See that shims are correctly created

Expected Behaviour

After asdf reshim, the ~/.asdf/shims folder should be created before creating all the necessary shims.

Actual Behaviour

Does not create the ~/.asdf/shims folder, does not create shims.

Environment

OS:
Darwin Mihai-Popescu 24.3.0 Darwin Kernel Version 24.3.0: Thu Jan  2 20:24:23 PST 2025; root:xnu-11215.81.4~3/RELEASE_ARM64_T6020 arm64

SHELL:
zsh 5.9 (arm64-apple-darwin24.0)

BASH VERSION:
5.2.37(1)-release

ASDF VERSION:
0.16.1

ASDF INTERNAL VARIABLES:
ASDF_DEFAULT_TOOL_VERSIONS_FILENAME=.tool-versions
ASDF_DATA_DIR=/Users/<username>/.asdf
ASDF_CONFIG_FILE=/Users/<username>/.asdfrc

ASDF INSTALLED PLUGINS:
nodejs    https://github.com/asdf-vm/asdf-nodejs.git 9c4e0f27d760a33fb56c653c632b96d51ac3f8cf
python    https://github.com/danhper/asdf-python.git 5e277e24ec2b6739728f458c1c25eeb2a8b8bb79
ruby      https://github.com/asdf-vm/asdf-ruby.git   a76d00bb643f3528f31aaee9a7c246c449016419

asdf plugins affected (if relevant)

No response

@ibagur
Copy link

ibagur commented Feb 6, 2025

Describe the Bug

Version 0.16.1
macOS 15.3
Installed via Homebrew

Actual Behaviour

I confirm same bug. In fact after an asdf upgrade through brew, my shims directory vanished completelly, breaking totally the current asdf configuration I had to handle various Python installations.

I had to use Time Machine in order to bring back a backup copy of the shims directory prior to the upgrade.

Environment


OS:
Darwin MacBookPro.local 24.3.0 Darwin Kernel Version 24.3.0: Thu Jan  2 20:24:23 PST 2025; root:xnu-11215.81.4~3/RELEASE_ARM64_T6031 arm64

SHELL:
zsh 5.9 (arm64-apple-darwin24.0)

BASH VERSION:
3.2.57(1)-release

ASDF VERSION:
0.16.1

ASDF INTERNAL VARIABLES:
ASDF_DEFAULT_TOOL_VERSIONS_FILENAME=.tool-versions
ASDF_DATA_DIR=/Users/inigo/.asdf
ASDF_CONFIG_FILE=/Users/inigo/.asdfrc

ASDF INSTALLED PLUGINS:
python    https://github.com/danhper/asdf-python.git a3a01856098d6d2b9642e382f5b38e70275726d1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants