hexpm / hex

Package manager for the Erlang ecosystem.
https://hex.pm
978 stars 187 forks source link

Unknown package version in lockfile #973

Closed nathany-copia closed 1 year ago

nathany-copia commented 1 year ago

A number of people who upgraded Oban Pro from 0.12.0 to 0.13.0 are having an issue where Hex isn't always finding the package. Oban Pro requires an authentication step, but the failure is happening when running mix deps.get.

** (Mix) Unknown package version oban_pro 0.13.0 in lockfile

I'm seeing this regularly in GitHub Actions runs, but re-running will often solve it. The failure is intermittent, and only started with the 0.13.0 upgrade.

@sorentwo has a theory that it may be related to optional dependencies and is doing some experimentation.

Any insights?

sorentwo commented 1 year ago

This was due to a version cache inconsistency between servers. Nothing to see here!

nathany-copia commented 1 year ago

I should mentioned that I revved the cache on GitHub Actions at some point, and it still occurred intermittently, plus a number of people saw the issue locally.

A cache inconsistency between Hex servers makes a lot more sense than a local cache issue as discussed in #329.

ericmj commented 1 year ago

@sorentwo Thanks for letting us know what issue was and solving it.