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

Add environment variable for reusing Mix.install/2 installation #13378

Merged
merged 7 commits into from
Feb 29, 2024

Conversation

jonatanklosko
Copy link
Member

After calling Mix.install/2, one may retrieve the installation directory with Mix.install_project_dir/0 and then use the MIX_INSTALL_RESTORE_PROJECT_DIR environment variable in another session as a starting point for a different Mix.install/2.

Implementation-wise we copy the restore dir contents, do the installation, then remove files for the dependencies that are not used.

@josevalim josevalim merged commit 0bb305a into elixir-lang:main Feb 29, 2024
8 checks passed
@josevalim
Copy link
Member

💚 💙 💜 💛 ❤️

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

Successfully merging this pull request may close these issues.

2 participants