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

Should up also just ignore unknown packages? #562

Open
fredrikekre opened this issue Aug 2, 2018 · 1 comment
Open

Should up also just ignore unknown packages? #562

fredrikekre opened this issue Aug 2, 2018 · 1 comment

Comments

@fredrikekre
Copy link
Member

Currently there is a bit of an inconsistency when Pkg throws. For example, pkg> rm Foo only warns, but pkg> up Foo errors when Foo is not in the project. Should both just warn? Or maybe both throw?

julia> pkg"rm FooBar"
┌ Warning: `FooBar` not in project, ignoring
└ @ Pkg.Operations ~/julia-master/usr/share/julia/stdlib/v0.7/Pkg/src/Operations.jl:1120
[ Info: No changes

julia> pkg"up FooBar"
ERROR: The following package names could not be resolved:
 * FooBar (not found in project or manifest)
Please specify by known `name=uuid`.
Stacktrace:
@StefanKarpinski
Copy link
Member

Yes, that seems like a big improvement.

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

No branches or pull requests

3 participants