Open topolarity opened 2 months ago
I failed to reproduce this. Here is my attempt: https://github.com/JuliaLang/julia/commit/92c4bc9134bcc6e8b1a14f3bc57b20d628c1edec
~/julia/test/project/Extensions/BugDepLookup kc/deps_lookup_bug
❯ ~/julia/julia --project -q
(BugDepLookup) pkg> st
Project BugDepLookup v0.1.0
Status `~/julia/test/project/Extensions/BugDepLookup/Project.toml`
[678608ae] SomePackage v0.1.0 `../SomePackage`
julia> using BugDepLookup, SomePackage
julia> Base.get_extension(BugDepLookup, :SomePackageExt)
SomePackageExt
julia> exit()
~/julia/test/project/Extensions/BugDepLookup kc/deps_lookup_bug
❯ ~/julia/julia --project -q
(BugDepLookup) pkg> activate --temp
Activating new project at `/tmp/jl_JikKPp`
(jl_JikKPp) pkg> dev . ../SomePackage/
Resolving package versions...
Updating `/tmp/jl_JikKPp/Project.toml`
[9b094d01] + BugDepLookup v0.1.0 `../../home/kc/julia/test/project/Extensions/BugDepLookup`
[678608ae] + SomePackage v0.1.0 `../../home/kc/julia/test/project/Extensions/SomePackage`
Updating `/tmp/jl_JikKPp/Manifest.toml`
[9b094d01] + BugDepLookup v0.1.0 `../../home/kc/julia/test/project/Extensions/BugDepLookup`
[678608ae] + SomePackage v0.1.0 `../../home/kc/julia/test/project/Extensions/SomePackage`
julia> using BugDepLookup, SomePackage
julia> Base.get_extension(BugDepLookup, :SomePackageExt)
SomePackageExt
I think this code has to look in deps as well:
That is what failed CI in https://github.com/JuliaLang/julia/pull/56234.
I believe https://github.com/JuliaLang/julia/pull/56234/commits/ad1dc390e3123b65433ee06a651ca6de88c29914 (that is in #56234) should fix this.
This is an interesting one...
The presence of
Baz
in[weakdeps]
seems to "revoke" FooBarExt's rights tousing Bar
somehow:If the
[weakdeps]
section is removed and I re-resolve
everything works fine:Happening on latest master (didn't test 1.10 / 1.11, since those don't allow for
deps
to be valid as an ext trigger like this)