mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-07-07 09:33:12 -05:00
gitUpdater {} never selected a version: list-git-tags returns v-prefixed
tags (v0.1.6, matching src.tag = "v${version}"), and generic-updater's
`grep "^[0-9]"` filter drops every tag that does not start with a digit,
so the script always printed [] and made no change.
Set rev-prefix = "v" so versions are compared as 0.1.6, and add
ignoredVersions = "(a|b|rc)[0-9]+$" to skip the PEP 440 pre-release tags
(v0.1.5b1, v0.1.0a1, ...) that version_is_unstable's odd-minor and
patchlevel>=90 heuristics do not recognise.
Validation:
- nix-shell maintainers/scripts/update.nix --argstr package
python3Packages.markitdown --argstr skip-prompt true
(0.1.4 -> 0.1.6 selected, pre-releases skipped, correct hash resolved).
- nix fmt -- pkgs/development/python-modules/markitdown/default.nix
- git diff --check
|
||
|---|---|---|
| .. | ||
| default.nix | ||