Skip to content

Conversation

@ericmj
Copy link
Member

@ericmj ericmj commented Feb 11, 2020

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.

Copy link
Member Author

@ericmj ericmj left a 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
[]
Copy link
Member Author

@ericmj ericmj Feb 11, 2020

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.
Copy link
Member Author

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?

@ericmj ericmj requested a review from josevalim February 11, 2020 17:55
ericmj added a commit to hexpm/hex that referenced this pull request Feb 13, 2020
@ericmj
Copy link
Member Author

ericmj commented Feb 13, 2020

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.
@ericmj ericmj force-pushed the emj/update-divergereq branch from f6d4794 to 6afb8b7 Compare February 13, 2020 20:14
@ericmj ericmj merged commit 30c5f49 into master Feb 13, 2020
@ericmj ericmj deleted the emj/update-divergereq branch February 13, 2020 20:28
ericmj added a commit to hexpm/hex that referenced this pull request Feb 13, 2020
@lukaszsamson
Copy link
Contributor

@josevalim @ericmj Can this fix be backported to 1.10? I keep running into #9806 every on every mix deps.update

ericmj added a commit that referenced this pull request Mar 23, 2020
)

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.
@ericmj
Copy link
Member Author

ericmj commented Mar 23, 2020

I have backported it but I don't know if there will be another 1.10 release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

Spurious error from mix deps.update on Elixir 1.10

4 participants