You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, it is possible for mamba to update an entire environment with:
mamba env update -n env_name [--all] [--prune]
As most package are relying on Semantic Versioning (AKA SemVer), being able to perform updates of packages following this scheme would be useful.
Update of versions following this semantic (namely updates for major, minor, patch, and even build) could be integrated in the env update command so that one could update a set of package easily.
Proposed UX: new flags for each SemVer segment
Each segment of Semantic Versioning (e.g. major, minor, patch, build) could have a new flag to update the set of package accordingly:
# Update all the packages in `env_name` for their last major version
mamba env update -n env_name --major
# Update all the package in `env_name` for their last minor version
mamba env update -n env_name --minor
# Update all the package in `env_name` for their last patch version
mamba env update -n env_name --patch
# Update all the package in `env_name` for the last build of the current version
mamba env update -n env_name --build
Those commands must be composable with the existing flags and arguments, such as --all, --prune, or explicitly specified MatchSpec.
Thank you for opening the RFC. I think this looks great.
One thing that may be useful would be to allow some packages to advertise a different semantics for their versioning. For example, I presume that Python could consider minor version bump (3.11 vs 3.12) as backward incompatible in this system.
Yes, there are several packages that only apparently use Semantic Versioning, but which do not effectively. We must find a way to find the ones which do and the ones which do not, and handle them appropriately.
Feature request specification
Currently, it is possible for mamba to update an entire environment with:
As most package are relying on Semantic Versioning (AKA SemVer), being able to perform updates of packages following this scheme would be useful.
Update of versions following this semantic (namely updates for major, minor, patch, and even build) could be integrated in the
env update
command so that one could update a set of package easily.Proposed UX: new flags for each SemVer segment
Each segment of Semantic Versioning (e.g. major, minor, patch, build) could have a new flag to update the set of package accordingly:
Those commands must be composable with the existing flags and arguments, such as
--all
,--prune
, or explicitly specifiedMatchSpec
.For instance, all the following must work:
Per-requisites
A few issues might need to be performed first, such as:
update
andenv update
.--prune
--all
See related issues:
env
subcommand orenv update
options for environment reboot #3529The text was updated successfully, but these errors were encountered: