-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
"ArgumentError: Package FooBarExt does not have Bar in its dependencies" when dep
in extension (rather than weakdep
)
#55939
Labels
Comments
topolarity
added
bug
Indicates an unexpected problem or unintended behavior
package extensions
labels
Sep 30, 2024
KristofferC
pushed a commit
that referenced
this issue
Oct 18, 2024
I failed to reproduce this. Here is my attempt: 92c4bc9 ~/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: Lines 1003 to 1019 in 04259da
That is what failed CI in #56234. |
1 task
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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)The text was updated successfully, but these errors were encountered: