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

[elixir 1.15] add prune_code_paths false #84

Merged
merged 2 commits into from
Dec 19, 2023

Conversation

redink
Copy link
Collaborator

@redink redink commented Dec 18, 2023

Refer to:

  1. https://github.com/elixir-lang/elixir/releases/tag/v1.15.0

Potential incompatibilities
Due to the code path pruning, if you have an application or dependency
that does not specify its dependencies on Erlang and Elixir application,
it may no longer compile successfully in Elixir v1.15. You can temporarily
disable code path pruning by setting prune_code_paths: false in your
mix.exs, although doing so may lead to runtime bugs that are only
manifested inside a mix release.

  1. https://mikebian.co/learning-elixir-and-ecto/

Elixir 1.15 makes it more challenging to check if an optional package is loaded from the parent application. prune_code_paths: false fixes this, but you lose all of the benefits of the Elixir 1.15 compiler. You can run mix deps.compile --force once which fixes the issue as well.

@zhongwencool zhongwencool merged commit 275508f into master Dec 19, 2023
@zhongwencool zhongwencool deleted the add-prune_code_paths-false-for-1.15 branch December 19, 2023 03:07
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

2 participants