Skip to content
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

ArgumentError when adding packages with "+" in version #4063

Open
arlowhite opened this issue Oct 29, 2024 · 2 comments
Open

ArgumentError when adding packages with "+" in version #4063

arlowhite opened this issue Oct 29, 2024 · 2 comments

Comments

@arlowhite
Copy link

arlowhite commented Oct 29, 2024

Julia 1.11.1

Packages can have a version that causes an ArgumentError when added.

In a new project:

(julia_tmp) pkg> add [email protected]+0
ERROR: ArgumentError: invalid base 10 digit '+' in "0+0"

Same error with Pkg API: Pkg.add(name="MKL_jll", version="2024.2.0+0")


add [email protected] works

(julia_tmp) pkg> status MKL_jll
  [856f044c] MKL_jll v2024.2.0+0
@fredrikekre fredrikekre transferred this issue from JuliaLang/julia Oct 29, 2024
@KristofferC
Copy link
Member

I think this works Pkg.add(; name="MKL_jll", version=v"2024.2.0+0")

@arlowhite
Copy link
Author

That does work, but you can't do that in the ] REPL.

(jl_981J6x) pkg> add MKL_jll@v"2024.2.0+0"

ERROR: Unable to parse 2024.2.0+0 as a package.

In any case, I would expect version values printed by status or the string conversion of a VersionNumber to be valid values when using Pkg.add or ] add <name>@<version>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants