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
If user does e.g. Pkg.add("Foo.jl")
, instruct them to do Pkg.add("Foo")
instead
#2099
Conversation
I think this should be part of the error message instead, e.g.
instead of the current
|
Done. |
I think the CI failures are unrelated: (click to expand)
|
@ianshmean Will the CI errors that I'm seeing in this PR will be fixed by #2091? |
Alright, this is good to go assuming CI passes. |
Hmmmm. @ianshmean Any chance you know what's causing these new CI failures? |
I think this needs a rebase |
Alright, looks like tests are finally passing. |
@fredrikekre Is this good to merge now? |
Maybe add a test? |
Good idea. Done. |
Bump. |
CI failures are due to Pkg server woes. |
Think you need to be a bit careful with string indexing, for example:
|
Using |
I think we do that in the repl. |
Fair enough. Makes sense to be stricter in the API. |
Good catch on the string indexing. I've changed it to use |
This is correct. (@v1.5) pkg> add Example.jl
Resolving package versions...
Installed Example ─ v0.5.3
Updating `~/.julia/environments/v1.5/Project.toml`
[7876af07] + Example v0.5.3
Updating `~/.julia/environments/v1.5/Manifest.toml`
[7876af07] + Example v0.5.3
Agreed. |
…Foo")` instead (JuliaLang#2099) (cherry picked from commit 46eb2b2)
In documentation and other prose, we often refer to Julia packages as "PackageName.jl". So I think it is understandable that a user would try to do
Pkg.add("PackageName.jl")
.This PR prints an instructive message if a user tries to do that.