-
-
Notifications
You must be signed in to change notification settings - Fork 251
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
Ignore lack of project.toml for removed stdlibs when julia_version != VERSION
#3362
Conversation
…= VERSION` Because DelimitedFiles was removed, the assumption in this conditional (that if something is a stdlib, it exists locally) has been broken. Because I don't think it's reasonable to go out and clone stdlibs at this point, I'm just skipping the dependency (And any of its dependencies) because this codepath is primarily used by BinaryBuilder, where we really only care about JLLs anyway, which are never unregistered.
MWE of the error:
|
Maybe this is not the right place but I've been trying to understand what exactly BinaryBuilder wants from Pkg that requires all this stdlib shenanigans (cc @giordano). I am somewhat certain that the current stuff is a local maxima based on everyone having partial knowledge about the problem.
Regarding this: For example in 20ba6dd I made an option where jlls are not considered stdlibs at all and are always resolved from the registry. That seemed to work well enough that it got made into a monkey patch for libjulia in Yggdrasil: JuliaPackaging/Yggdrasil@fedc934#diff-29b8d08819b1a971a0a4f552117850f0569b1947bc3390d698455c6e3b7557b7. Is that what is actually needed? If we can just ignore stdlibs then it seems the whole stdlib history stuff is kind of pointless and what we really want is just to be able to consider jlls normal packages? |
The only part of the
I don't think this is sufficient... the issue is that we need Pkg to download things for a particular version of Julia. This is important when we're e.g. building a new version of a JLL that ships with Julia. As it stands now, we also don't have tight enough constraints within the registry on some of the JLL stdlibs, but we can go back and fix that, so it's not that big of a deal.
I think a good place for this discussion is on the JLLPrefixes issue tracker. That's the package where I'm trying to isolate all Pkg-resolution-related behavior for BinaryBuilder. The idea is that you pass it a few JLL names and a |
This should probably re enable the disabled tests for adding jlls etc? |
Thinking about it, JuliaLang/julia#48671 might make this PR redundant. Edit: Or maybe not since DelimitedFiles will not be considered an stdlib by Pkg.. |
I have double-checked with both the tip of |
We should still re-enable the tests I presume? |
Because DelimitedFiles was removed, the assumption in this conditional
(that if something is a stdlib, it exists locally) has been broken.
Because I don't think it's reasonable to go out and clone stdlibs at
this point, I'm just skipping the dependency (And any of its
dependencies) because this codepath is primarily used by BinaryBuilder,
where we really only care about JLLs anyway, which are never
unregistered.