-
-
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.
only load extension triggers from the evnironment where the parent pa…
…ckage is loaded (#48703)
- Loading branch information
1 parent
c82aeb7
commit 200c962
Showing
9 changed files
with
137 additions
and
26 deletions.
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
29 changes: 29 additions & 0 deletions
29
test/project/Extensions/EnvWithHasExtensions/Manifest.toml
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,29 @@ | ||
# This file is machine-generated - editing it directly is not advised | ||
|
||
julia_version = "1.9.0-beta4" | ||
manifest_format = "2.0" | ||
project_hash = "caa716752e6dff3d77c3de929ebbb5d2024d04ef" | ||
|
||
[[deps.ExtDep]] | ||
deps = ["SomePackage"] | ||
path = "../ExtDep.jl" | ||
uuid = "fa069be4-f60b-4d4c-8b95-f8008775090c" | ||
version = "0.1.0" | ||
|
||
[[deps.HasExtensions]] | ||
path = "../HasExtensions.jl" | ||
uuid = "4d3288b3-3afc-4bb6-85f3-489fffe514c8" | ||
version = "0.1.0" | ||
|
||
[deps.HasExtensions.extensions] | ||
Extension = "ExtDep" | ||
ExtensionFolder = ["ExtDep", "ExtDep2"] | ||
|
||
[deps.HasExtensions.weakdeps] | ||
ExtDep = "fa069be4-f60b-4d4c-8b95-f8008775090c" | ||
ExtDep2 = "55982ee5-2ad5-4c40-8cfe-5e9e1b01500d" | ||
|
||
[[deps.SomePackage]] | ||
path = "../SomePackage" | ||
uuid = "678608ae-7bb3-42c7-98b1-82102067a3d8" | ||
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,4 @@ | ||
[deps] | ||
ExtDep = "fa069be4-f60b-4d4c-8b95-f8008775090c" | ||
HasExtensions = "4d3288b3-3afc-4bb6-85f3-489fffe514c8" | ||
SomePackage = "678608ae-7bb3-42c7-98b1-82102067a3d8" |
25 changes: 25 additions & 0 deletions
25
test/project/Extensions/EnvWithHasExtensionsv2/Manifest.toml
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,25 @@ | ||
# This file is machine-generated - editing it directly is not advised | ||
|
||
julia_version = "1.10.0-DEV" | ||
manifest_format = "2.0" | ||
project_hash = "caa716752e6dff3d77c3de929ebbb5d2024d04ef" | ||
|
||
[[deps.ExtDep]] | ||
deps = ["SomePackage"] | ||
path = "../ExtDep.jl" | ||
uuid = "fa069be4-f60b-4d4c-8b95-f8008775090c" | ||
version = "0.1.0" | ||
|
||
[[deps.HasExtensions]] | ||
path = "../HasExtensions_v2.jl" | ||
uuid = "4d3288b3-3afc-4bb6-85f3-489fffe514c8" | ||
version = "0.2.0" | ||
weakdeps = ["ExtDep"] | ||
|
||
[deps.HasExtensions.extensions] | ||
Extension2 = "ExtDep" | ||
|
||
[[deps.SomePackage]] | ||
path = "../SomePackage" | ||
uuid = "678608ae-7bb3-42c7-98b1-82102067a3d8" | ||
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,4 @@ | ||
[deps] | ||
ExtDep = "fa069be4-f60b-4d4c-8b95-f8008775090c" | ||
HasExtensions = "4d3288b3-3afc-4bb6-85f3-489fffe514c8" | ||
SomePackage = "678608ae-7bb3-42c7-98b1-82102067a3d8" |
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 = "HasExtensions" | ||
uuid = "4d3288b3-3afc-4bb6-85f3-489fffe514c8" | ||
version = "0.2.0" | ||
|
||
[weakdeps] | ||
ExtDep = "fa069be4-f60b-4d4c-8b95-f8008775090c" | ||
|
||
[extensions] | ||
Extension2 = "ExtDep" |
3 changes: 3 additions & 0 deletions
3
test/project/Extensions/HasExtensions_v2.jl/ext/Extension2.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,3 @@ | ||
module Extension2 | ||
|
||
end |
10 changes: 10 additions & 0 deletions
10
test/project/Extensions/HasExtensions_v2.jl/src/HasExtensions.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,10 @@ | ||
module HasExtensions | ||
|
||
struct HasExtensionsStruct end | ||
|
||
foo(::HasExtensionsStruct) = 1 | ||
|
||
ext_loaded = false | ||
ext_folder_loaded = false | ||
|
||
end # module |