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

Ease Elixir escripts execution by adding ${HOME}/.mix/escripts to path #153

Merged
merged 5 commits into from
Nov 22, 2022

Conversation

btkostner
Copy link
Contributor

This adds the mix escripts folder to PATH, allowing you to run mix escript.install hex protobuf --force and have access to the protobuf generator right away. Making life simpler.

I'm having this as a WIP because I don't program in windows and need to confirm this actually works as intended.

@paulo-ferraz-oliveira
Copy link
Collaborator

Hey, @btkostner. Thanks for this.

I'm wondering if this is sufficiently generic though, to have included in the action.

What do you think, @starbelly, @ericmj, @wojtekmach?

@wojtekmach
Copy link
Collaborator

wojtekmach commented Nov 9, 2022 via email

@paulo-ferraz-oliveira
Copy link
Collaborator

@btkostner, could you add a simple test that demonstrates the behaviour, and can be constantly used for regression testing?

@btkostner btkostner marked this pull request as ready for review November 21, 2022 18:30
@btkostner
Copy link
Contributor Author

Alright, I added it to the existing install test matrix, but if you want me to split it off to it's own job, I can do that. Tests show it working in Linux and Windows. Let me know if there is more that I should do.

Copy link
Collaborator

@paulo-ferraz-oliveira paulo-ferraz-oliveira left a comment

Choose a reason for hiding this comment

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

This looks good. Thanks @btkostner.

@paulo-ferraz-oliveira paulo-ferraz-oliveira changed the title feat: add escripts to path Ease Elixir escripts execution by adding ${HOME}/.mix/escripts to path Nov 22, 2022
@paulo-ferraz-oliveira paulo-ferraz-oliveira merged commit b980a5a into erlef:main Nov 22, 2022
@paulo-ferraz-oliveira
Copy link
Collaborator

Merging to main...

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.

None yet

3 participants