-
Notifications
You must be signed in to change notification settings - Fork 46
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 make_precompiler_downloader option #87
Conversation
fb00d47
to
b1ba146
Compare
test/mix/tasks/compile.make_test.exs
Outdated
cache_dir = "./cache" | ||
System.put_env("ELIXIR_MAKE_CACHE_DIR", cache_dir) | ||
|
||
Mix.Task.reenable("elixir_make.precompile") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we need to reenable it here again since we reenable on setup?
test/mix/tasks/compile.make_test.exs
Outdated
[ | ||
make_precompiler: {:nif, MyApp.Precompiler}, | ||
make_precompiler_url: "https://example.com/@{artefact_filename}", | ||
make_precompile_downloader: MyApp.Downloader |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Perhaps it makes more sense to define this module on this file?
Looks good to me. Can you please rename the option to |
Allows users to customize download behavior, such as adding HTTP authentication or using an alternate protocol like SFTP.
b1ba146
to
14a2b7b
Compare
Thanks for the review! I've updated the PR with your suggestions. |
💚 💙 💜 💛 ❤️ |
Allows users to customize download behavior, such as adding HTTP
authentication or using an alternate protocol like SFTP.