From 2ffe69f378b9043817d574c20809e05706256c6c Mon Sep 17 00:00:00 2001 From: Martin Toman Date: Wed, 14 Sep 2022 12:02:13 -0700 Subject: [PATCH] fix: php: semver caret comparison --- src/subsystems/php/semver.nix | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/subsystems/php/semver.nix b/src/subsystems/php/semver.nix index 20917ec1..59581ec2 100644 --- a/src/subsystems/php/semver.nix +++ b/src/subsystems/php/semver.nix @@ -20,8 +20,7 @@ mkCaretComparison = version: v: let ver = builtins.splitVersion v; major = l.toInt (l.head ver); - minor = builtins.toString (l.toInt (l.head ver) + 1); - upper = builtins.concatStringsSep "." (ireplace 0 minor ver); + upper = builtins.toString (l.toInt (l.head ver) + 1); in if major == 0 then mkTildeComparison version v