-
-
Notifications
You must be signed in to change notification settings - Fork 270
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
Attempt to fix BB julia_version issue #2942 #2963
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||||
---|---|---|---|---|---|---|---|---|
|
@@ -428,7 +428,7 @@ function deps_graph(env::EnvCache, registries::Vector{Registry.RegistryInstance} | |||||||
# unregistered stdlib we must special-case it here. This is further | ||||||||
# complicated by the fact that we can ask this question relative to | ||||||||
# a Julia version. | ||||||||
if is_unregistered_stdlib(uuid) || uuid_is_stdlib | ||||||||
if (is_unregistered_stdlib(uuid) || uuid_is_stdlib) && haskey(stdlibs(), uuid) | ||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
@barche does this seem correct? Although, I don't understand how the correct version is installed for the target julia version if it's different to the one provided by the host Julia There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yes, I think this is a correct summary. It's true that there could be edge cases where this gets an incompatible version of an stdlib, but only in the case where a package is requested for a julia version that is different from the running version. I don't know how to deal with that and I'd propose to tackle that problem when and if it ever occurs. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @staticfloat it'd be good to get your take on this part too.
|
||||||||
path = Types.stdlib_path(stdlibs_for_julia_version[uuid][1]) | ||||||||
proj_file = projectfile_path(path; strict=true) | ||||||||
@assert proj_file !== nothing | ||||||||
|
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.
I'm confused, as far as I can tell, this branch should already be
false
: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.
But the error occurs when doing:
So
uuid_is_stdlib
is true, and it tries to get the project file from an stdlib that is no longer there and crashes.