hexpm / hex

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

Error: Lock is missing #1010

Closed fuelen closed 4 months ago

fuelen commented 6 months ago

I'm trying to update an app to Elixir 1.15.7 and OTP 26.2.1.

Steps to reproduce:

$ mix new override_issue --umbrella
$ cd override_issue/apps
$ mix new app_a
$ mix new app_b
$ mix new app_c

Then specify the following deps in mix.exs for each app: app_a:

      {:timex, "~> 3.7"}

app_b:

      {:app_a, in_umbrella: true},
      {:timex, "~> 3.7"},
      {:tzdata, github: "lau/tzdata", override: true}

app_c:

      {:timex, "~> 3.7"}

And run

$ mix deps.get

Error:

** (Mix) The lock is missing for package tzdata. This could be because another package has configured the application name for the dependency incorrectly. Verify with the maintainer of the parent application

If I completely remove the folder with app_c, the error is gone.

fuelen commented 6 months ago

maybe related to https://github.com/hexpm/hex/issues/999

fuelen commented 4 months ago

can be fixed by adding

      {:tzdata, github: "lau/tzdata", override: true}

to each app even if tzdata is not used there