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

mise install terraform requires asdf binary #2296

Closed
jhogendorn opened this issue Jun 16, 2024 · 4 comments · Fixed by #3192
Closed

mise install terraform requires asdf binary #2296

jhogendorn opened this issue Jun 16, 2024 · 4 comments · Fixed by #3192
Labels

Comments

@jhogendorn
Copy link

Describe the bug
When installing terraform using mise, the plugin requires the existence of the asdf binary for some part of its operation.

To Reproduce

  • Do not have asdf installed.
  • mise install terraform

Expected behavior
It should run without the asdf binary existing

Additional context
Its not really a mise bug as such, its the asdf plugin expecting the asdf binary to exist for some part of its script to execute. Not sure if mise should shim asdf somehow to support or whether an issue/mr needs to happen upstream.

@jhogendorn jhogendorn added the bug label Jun 16, 2024
@roele
Copy link
Contributor

roele commented Jun 17, 2024

Can you provide some more information like the output of mise doctor. I am unable to see an issue installing terraform on my environment.

❯ mise install terraform
mise plugin:terraform ✓ https://github.com/asdf-community/asdf-hashicorp.git#f1602b6
mise terraform@1.8.5 ✓ installed
❯ mise shell terraform@1.8.5
❯ terraform --version
Terraform v1.8.5
on darwin_arm64

If you should use other binaries than terraform you should ensure you install the plugins as described as there is only one repository handling all binaries relying on the plugin folder name to determine the binary name.

mise plugin install consul https://github.com/asdf-community/asdf-hashicorp.git
...
mise plugin install vault https://github.com/asdf-community/asdf-hashicorp.git

@jdx
Copy link
Owner

jdx commented Jun 17, 2024

it's possible "fake-asdf" is not being setup correctly anymore on new setups since I think I saw mention from someone else about a similar thing, it might work for you @roele since you already have it setup

@roele
Copy link
Contributor

roele commented Jun 17, 2024

Did not realize that this is not setup anymore nowadays.

As a workaround i assume this can be done manually.

echo '#!/bin/sh
mise asdf "$@"
' >> ~/.local/share/mise/.fake-asdf/asdf

According to the code this gets setup as part of the shims and a mise reshim should create the necessary script.

@jdx
Copy link
Owner

jdx commented Jun 17, 2024

well it should be still working, but given this ticket and another message I saw I think it's possible something may have broke but I haven't verified

jdx added a commit that referenced this issue Nov 25, 2024
@jdx jdx closed this as completed in #3192 Nov 25, 2024
@jdx jdx closed this as completed in a4d77b0 Nov 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants