-
Notifications
You must be signed in to change notification settings - Fork 47
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
Feature request: Disallow downgrades #271
Comments
I wonder if this only came up after we switched to the releases api? |
I wouldn't exactly say that, the following also results in a downgrade:
|
Here's an example of a downgrade: NixOS/nixpkgs#339887 and from a manual run of nix-update
Is this a feature request or a bug? Is it expected behavior to downgrade in this situation? |
I think for sourcehut we need to semver sort the releases |
Archlinux has something that works also for more than just semver: https://man.archlinux.org/man/vercmp.8 |
Upstreams sometimes release tags out of order, for example if there's a stable and LTS version branches that are both getting maintenance. In such cases, running
nix-update
may downgrade stable to the LTS if the LTS tag is newer. It would be useful to disallow such downgrades in that scenario, and ensure only monotonically increasing version numbers.Example: NixOS/nixpkgs#334315
The text was updated successfully, but these errors were encountered: