Skip to content
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

Things get very confusing when putting the wrong name to a UUID in the project file #3853

Open
KristofferC opened this issue Mar 22, 2024 · 2 comments

Comments

@KristofferC
Copy link
Sponsor Member

Try a project file with:

[deps]
ForwardDiff = "0f1e0344-ec1d-5b48-a673-e5cf874b6c29"

activate it and then do:

julia> Pkg.add("ForwardDiff")
   Resolving package versions...
    Updating `/tmp/jl_RX2R13/TestWeakDepProject/Project.toml`
  [0f1e0344] + ForwardDiff v0.8.21
    Updating `/tmp/jl_RX2R13/TestWeakDepProject/Manifest.toml`

This now actually installed version 0.8.12 of WebIO (https://github.com/JuliaGizmos/WebIO.jl/releases/tag/v0.8.21) for which this is the UUID for.

@DilumAluthge
Copy link
Member

😬

@staticfloat
Copy link
Sponsor Member

Probably worthwhile to have the package printing recognize when you've locally altered the name of your package in opposition to what the loaded registry would call it, and print something like:

julia> Pkg.add("ForwardDiff")
   Resolving package versions...
    Updating `/tmp/jl_RX2R13/TestWeakDepProject/Project.toml`
  [0f1e0344] + WebIO (mapped as ForwardDiff) v0.8.21
    Updating `/tmp/jl_RX2R13/TestWeakDepProject/Manifest.toml`

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants