Skip to content

Allow Mix.install/2 to run several times in the same instance #12293

@josevalim

Description

@josevalim

The process should be roughly like:

  1. Create a new directory for the new installation
  2. Run mix deps.get
  3. Compare the versions and see which entries were added or removed
  4. Run a fixpoint computation until we find all application that depends on something that was added or removed
  5. Stop all apps, unload all modules, and remove all code paths for previous dependencies + consolidated protocols
  6. Copy the _build and deps entries for the ones that did not change
  7. Continue as usual

/cc @wojtekmach

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions