From e35b4bb90da479184c35a81039ab2979df0c9c0f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20Balv=C3=ADn?= Date: Tue, 22 Sep 2026 21:48:00 +0200 Subject: [PATCH] fix: take the release-check version from the recipe argument --- justfile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/justfile b/justfile index f6b0a6e..7c56dab 100644 --- a/justfile +++ b/justfile @@ -118,7 +118,9 @@ example: # The release pre-flight, in one command: the branch, a clean tree, a sync with origin, the gates, and a CHANGELOG section ready to release. Not a gate, it is the checklist before a release may even be discussed. release-check version: #!/usr/bin/env perl - my ($version) = @ARGV; + # The version arrives through the recipe interpolation: just does not hand + # positional arguments to a shebang script's @ARGV. + my $version = q{ {{version}} }; $version =~ m{\Av?\d+\.\d+\.\d+\z} or die qq{usage: just release-check X.Y.Z\n}; my $branch = qx{git rev-parse --abbrev-ref HEAD}; chomp $branch;