-
-
Notifications
You must be signed in to change notification settings - Fork 269
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
Pkg REPL compatibility bounds #341
Comments
You can already do something like
Perhaps that should also put |
Should probably show the |
Maybe we should allow “add [email protected]“ to set a lower bound, as that’s the most common use case. Maybe go whole hog and allow “add [email protected]” |
|
I propose that the API for this be based around the versions of packages currently being used in the Manifest. For sake of example, lets call this function
So if I just created a new project for some data science I might do:
which will give me a Project.toml withat has those packages and normal (carat) bound to the current versions. Which is what i normally do when I start a new project. If I want to later restrict to also support a newly released CSV v0.6 I would do:
If I became paranoid about thing breaking, and i wanted to lock all the versions down to what i know currently works.
This API wouldn't do everything, in particular some things would be much easier going into Project.toml to do, like removing compat for an old version of something. But I think it would nicely handle a lot of common use-cases, and while nontraditional, would be more useful than something that basically just replaces edits to a text file with commands that use basically the same characters in the REPL. |
Introduced in #2702 If anyone's been using it, it would be good to get feedback! |
We need a way to specify compatibility bounds when adding packages, interactively through the REPL mode. I'm thinking something like
pkg> add Compat@[0.55.0+]
, or perhapspkg> add Compat
followed bypkg> restrict Compat 0.55.0-0.66.0
What do you guys think?
The text was updated successfully, but these errors were encountered: