n98-magerun: upgrade script limit to 2.x tags

Prevent upgrade script from attempting to use 1.x tag.
This package isn't actively maintained, so we shouldn't expect v3.
This commit is contained in:
Piotr Kwiecinski
2025-01-10 12:09:56 +01:00
parent 8cde48031d
commit 5a681f2e92
+9
View File
@@ -2,6 +2,7 @@
lib,
fetchFromGitHub,
php81,
nix-update-script,
}:
php81.buildComposerProject (finalAttrs: {
@@ -17,6 +18,14 @@ php81.buildComposerProject (finalAttrs: {
vendorHash = "sha256-n608AY6AQdVuN3hfVQk02vJQ6hl/0+4LVBOsBL5o3+8=";
passthru.updateScript = nix-update-script {
# Excludes 1.x versions from the Github tags list
extraArgs = [
"--version-regex"
"^(2\\.(.*))"
];
};
meta = {
changelog = "https://magerun.net/category/magerun/";
description = "Swiss army knife for Magento1/OpenMage developers";