-
-
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.
[release-1.11] Prevent pre-compilation package from triggering its ow…
…n extensions (#56666) (#56676) 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
1 parent
5ef1884
commit 4a7b1d1
Showing
8 changed files
with
87 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,16 @@ | ||
# This file is machine-generated - editing it directly is not advised | ||
|
||
julia_version = "1.11.1" | ||
manifest_format = "2.0" | ||
project_hash = "5d72c155f50f076d28b74de819d417878ffb0965" | ||
|
||
[[deps.DepWithParentExt]] | ||
path = "../DepWithParentExt.jl" | ||
uuid = "8a35c396-5ffc-40d2-b7ec-e8ed2248da32" | ||
version = "0.1.0" | ||
|
||
[deps.DepWithParentExt.extensions] | ||
ParentExt = "Parent" | ||
|
||
[deps.DepWithParentExt.weakdeps] | ||
Parent = "58cecb9c-f68a-426e-b92a-89d456ae7acc" |
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 @@ | ||
name = "Parent" | ||
uuid = "58cecb9c-f68a-426e-b92a-89d456ae7acc" | ||
version = "0.1.0" | ||
|
||
[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 |