-
Notifications
You must be signed in to change notification settings - Fork 3.5k
Fix divergedreq error when update changes requirement and version #9811
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
Conversation
ericmj
left a comment
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.
I am working on adding a test for this but it is not easy since it requires a parent with a changing requirement and a child with a changing version. We don't seem to have any existing tests where the dependencies actually change during the update.
| Enum.uniq_by(with_depending(deps, all_deps), & &1.app) | ||
| else | ||
| deps | ||
| [] |
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.
We don't have to mark these as fetched since they are marked immediately after fetching.
| # | ||
| # If there is any other dependency that is not ok, we include | ||
| # it for compilation too, this is our best to try to solve the | ||
| # maximum we can at each deps.get and deps.update. |
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.
Removed this comment since it doesn't seem to be true?
|
Added test on hex ^. |
The fix is to mark the dependency for compilation in the Fetcher (by touching .fetch) so that the Loader wont read the version from the .app file.
f6d4794 to
6afb8b7
Compare
|
@josevalim @ericmj Can this fix be backported to 1.10? I keep running into #9806 every on every |
|
I have backported it but I don't know if there will be another 1.10 release. |
The fix is to mark the dependency for compilation in the Fetcher (by
touching .fetch) so that the Loader wont read the version from the .app
file.
Fixes #9806.