-
-
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
Prevent pre-compilation package from triggering its own extensions #56666
Merged
Merged
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@KristofferC mentioned that the
package_locks
check used to do this job because the pre-compiling package would have been effectively marked as an "in-progress" loadThat sounds like a broken invariant to me..
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@vtjnash any idea whether this is an issue? Is it possible we might violate the package locks for the pre-compiling package?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since this appears to prevent the trigger from firing (if it was the explicitly required package for precompile), I'd say that still follows the locking scheme
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh I don't mean this fix specifically
I'm asking whether the fact that the explicitly required package is missing from
package_locks
could be an issue elsewhereThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
oh, yeah, that would probably cause confusion in the code elsewhere