-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Prevent pre-compilation package from triggering its own extensions (#…
…56666) It is possible for an extension `ExtAB` to be loadable by one of its triggers, e.g. if `A` loads `B`. However, this loading is not supposed to happen during pre-compilation of `A`. Getting this wrong means disagreeing with the scheduled pre-compile jobs (`A` is not scheduled to depend on or generate a cache file for `ExtAB` but accidentally attempts both) and leads to confusing errors about missing cache files. We used to cover up this bad behavior w/ an erroneous cycle warning (fixed by #55910), but now we need to be sure this works.
- Loading branch information
Showing
8 changed files
with
92 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
name = "DepWithParentExt" | ||
uuid = "8a35c396-5ffc-40d2-b7ec-e8ed2248da32" | ||
version = "0.1.0" | ||
|
||
[weakdeps] | ||
Parent = "58cecb9c-f68a-426e-b92a-89d456ae7acc" | ||
|
||
[extensions] | ||
ParentExt = "Parent" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
module ParentExt | ||
|
||
using Parent | ||
using DepWithParentExt | ||
|
||
end |
5 changes: 5 additions & 0 deletions
5
test/project/Extensions/DepWithParentExt.jl/src/DepWithParentExt.jl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
module DepWithParentExt | ||
|
||
greet() = print("Hello dep w/ ext for parent dep!") | ||
|
||
end # module DepWithParentExt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# This file is machine-generated - editing it directly is not advised | ||
|
||
julia_version = "1.12.0-DEV" | ||
manifest_format = "2.0" | ||
project_hash = "b6ac643184d62cc94427c9aa665ff1fb63d66038" | ||
|
||
[[deps.DepWithParentExt]] | ||
path = "../DepWithParentExt.jl" | ||
uuid = "8a35c396-5ffc-40d2-b7ec-e8ed2248da32" | ||
version = "0.1.0" | ||
weakdeps = ["Parent"] | ||
|
||
[deps.DepWithParentExt.extensions] | ||
ParentExt = "Parent" | ||
|
||
[[deps.Parent]] | ||
deps = ["DepWithParentExt"] | ||
path = "." | ||
uuid = "58cecb9c-f68a-426e-b92a-89d456ae7acc" | ||
version = "0.1.0" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
name = "Parent" | ||
uuid = "58cecb9c-f68a-426e-b92a-89d456ae7acc" | ||
version = "0.1.0" | ||
authors = ["Cody Tapscott <[email protected]>"] | ||
|
||
[deps] | ||
DepWithParentExt = "8a35c396-5ffc-40d2-b7ec-e8ed2248da32" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
module Parent | ||
|
||
using DepWithParentExt | ||
|
||
greet() = print("Hello parent!") | ||
|
||
end # module Parent |