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

make mix binary executable #130

Closed
wants to merge 1 commit into from
Closed

make mix binary executable #130

wants to merge 1 commit into from

Conversation

jdx
Copy link

@jdx jdx commented Jul 26, 2023

Fixes #129

Copy link
Member

@Stratus3D Stratus3D left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This file isn't the mix binary. It's a shim template that's only read by asdf to generate the actual mix shim that invokes the binary. I don't see any good reason for a template to be executable. rtx should probably handle generating an executable file if that is necessary.

See https://asdf-vm.com/plugins/create.html#custom-shim-templates

@jdx
Copy link
Author

jdx commented Aug 11, 2023

@Stratus3D I'm curious if you've considered if we could remove shim templates, couldn't the plugin's install script just copy this to ~/.asdf/installs/elixir/1.0.0/bin/mix? I'm not sure I see the advantage of using ~/.asdf/shims/mix but I might be missing something

@Stratus3D
Copy link
Member

Sorry for the late reply here.

@Stratus3D I'm curious if you've considered if we could remove shim templates, couldn't the plugin's install script just copy this to ~/.asdf/installs/elixir/1.0.0/bin/mix? I'm not sure I see the advantage of using ~/.asdf/shims/mix but I might be missing something

Yes, I think it could but I've not tested it. Shim templates were added early on I believe and they never became a widely used feature. In this case it looks like it's probably not needed, but other plugins may still rely on shim templates.

I'm going to close this PR as I don't want shim templates to be executable.

@Stratus3D Stratus3D closed this Mar 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Make mix binary executable
2 participants