dialyxir
dialyxir copied to clipboard
Update PLT if dependency has changed
Current behavior
dialyxir
checks that the old built plt contains the updated information about depencencies based on the hash of the lock and remove/add files that are not in the plt if necessary.
If one of the depencies were changes, though the list of the files remain the same, plt for the changed files won't be rebuilt.
Expected behavior
dialyxir
tracks version/hashsum of the depenencies that plt was built with and updates the plt if beam has changed.
Sorry can you elaborate on this? How does a dependency change without changing the lock file? Is it a local dependency?
The root of this issue was an attempt to make a single project re-use dependency PLTs.
You are absolutely right, if a dependency is changed, the lock (and the hash of it) is changed as well, which triggers PLT re-build for all dependencies. If the PLT hash were implemeted on per dependency (or a file) level, it would allow to speed up the process rebuilding PLT only for dependencies/files that were changed.