-
-
Notifications
You must be signed in to change notification settings - Fork 268
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
Unable to install unregistered package in Julia >=1.7 (when providing a Context) #3251
Comments
Remove the context argument. If you have to use it (knowing it is an implementation detail) then you need to read the source to know how to use it properly. |
Thank you, @KristofferC! I am trying to understand the issue with BinaryBuilder; I am not using this directly in my module. I will continue the discussion there and update this issue appropriately. |
It seems that using the context argument is a requirement of the I do not know why and how it is used. If I understand more about the internals of Thank you! |
This issue severely degrades the ability to use BB.jl and Julia for rapid prototyping with existing C/C++ libraries in a reproducible manner. Is there any way this will be fixed in the foreseeable future? I know everyone is busy, thus I am not complaining, just kindly asking to know what the status is 🙂 |
This issue needs more information on why the given internal (evidently incorrect) format is being used, and why this cannot simply be used.
on julia 1.8.5 |
According to @giordano (not pointing fingers, just citing the source), the context argument seems to be required by BinaryBuilder.jl (JuliaPackaging/BinaryBuilder.jl#1173 (comment)). Unfortunately, I am completely out of my depth to say whether this is correct or what do do about it. I am just observing that it used to work for BB with unregistered packages, now it doesn't, and that it seems to be related to a change in Pkg. |
For the record dropping the name and uuid causes another issue, that the error message seems to imply should be supported
|
You need to call julia> pkgs = [Pkg.Types.PackageSpec(; name = "Box2D_jll", uuid = "6756b63d-2e54-5dc6-816b-1fc83e1ae834", url = "https://github.com/cirocavani/Box2D_jll.jl")]
1-element Vector{Pkg.Types.PackageSpec}:
PackageSpec(
name = Box2D_jll
uuid = 6756b63d-2e54-5dc6-816b-1fc83e1ae834
url = https://github.com/cirocavani/Box2D_jll.jl
version = *
)
julia> foreach(Pkg.API.handle_package_input!, pkgs)
julia> pkgs
1-element Vector{Pkg.Types.PackageSpec}:
PackageSpec(
name = Box2D_jll
uuid = 6756b63d-2e54-5dc6-816b-1fc83e1ae834
url = https://github.com/cirocavani/Box2D_jll.jl
version = *
repo/source = "https://github.com/cirocavani/Box2D_jll.jl"
)
julia> Pkg.add(Pkg.Types.Context(), pkgs)
Updating git-repo `https://github.com/cirocavani/Box2D_jll.jl`
Resolving package versions...
No Changes to `~/.julia/environments/v1.8/Project.toml`
No Changes to `~/.julia/environments/v1.8/Manifest.toml` |
I was waiting for someone to suggest that. No, it doesn't work: JuliaPackaging/BinaryBuilderBase.jl#212 |
If that's the case then it would be good to have a MWE that it doesn't work for. I think a lot of the BB issues are because providing a Lines 141 to 180 in 1c6ba55
|
Based on your suggestion, I found a workaround for BB until the underlying issue is fixed: JuliaPackaging/BinaryBuilder.jl#1173 (comment) |
Same opinion too :D would be amazing if it could be fixed in the near future |
Installing an unregistered package currently fails. I am attaching a MWE:
which results in the following error:
The output of
versioninfo()
:Julia is installed as a
cask
viahomebrew
.The issue also appears on a
Linux
machine. It has also been discussed at JuliaPackaging/BinaryBuilder.jl#1173The text was updated successfully, but these errors were encountered: