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 support for setting a global cache path using an env var #73

Merged
merged 2 commits into from
Jun 21, 2024

Conversation

philss
Copy link
Owner

@philss philss commented Jun 19, 2024

This is a feature that can help people with internet access restrictions or writing permission limitations.

It may help people that need to support systems running on NixOS or a Nix environment.

In a nutshell, first download the desired ".tar.gz" artifact for a given package, set the RUSTLER_PRECOMPILED_GLOBAL_CACHE_PATH to the directory that the package was downloaded, and then build your project normally.

This is a feature that can help people with internet access restrictions
or writing permission limitations.

It may help people that need to support systems running on NixOS or a
Nix environment.

In a nutshell, first download the desired ".tar.gz" artifact for a given
package, set the `RUSTLER_PRECOMPILED_GLOBAL_CACHE_PATH` to the
directory that the package was downloaded, and then build your project
normally.
@xanderio
Copy link

Could you maybe add an environment variable that enable from source compilation for all rustler_precompiled packages? Currently this seams to only be possible by patching the config.exs of every package using rustler_precompiled.

@philss philss marked this pull request as ready for review June 20, 2024 20:06
@philss
Copy link
Owner Author

philss commented Jun 20, 2024

@xanderio I think so. I will open another PR for that :)

@philss philss merged commit ed1684a into main Jun 21, 2024
2 checks passed
@philss philss deleted the ps-add-support-for-global-cache-path branch June 21, 2024 16:46
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.

2 participants