From a82e98d775112155dfe72f78c977dee21472ddbb Mon Sep 17 00:00:00 2001 From: Sven van Heugten Date: Mon, 2 Mar 2026 19:55:44 +0100 Subject: [PATCH] Move git-check-assertions to bin/ --- git-check-assertions => bin/git-check-assertions | 0 default.nix | 6 +++--- test.bats | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) rename git-check-assertions => bin/git-check-assertions (100%) diff --git a/git-check-assertions b/bin/git-check-assertions similarity index 100% rename from git-check-assertions rename to bin/git-check-assertions diff --git a/default.nix b/default.nix index 4dde1cf..8653ca0 100644 --- a/default.nix +++ b/default.nix @@ -20,7 +20,7 @@ resholve.mkDerivation { src = fs.toSource { root = ./.; fileset = fs.unions [ - ./git-check-assertions + ./bin/git-check-assertions ./test.bats ]; }; @@ -37,7 +37,7 @@ resholve.mkDerivation { checkPhase = '' runHook preCheck - shellcheck git-check-assertions test.bats + shellcheck bin/git-check-assertions test.bats git init git config user.email test git config user.name test @@ -52,7 +52,7 @@ resholve.mkDerivation { installPhase = '' runHook preInstall mkdir -p $out/bin - cp $src/git-check-assertions $out/bin/git-check-assertions + cp $src/bin/git-check-assertions $out/bin/git-check-assertions runHook postInstall ''; diff --git a/test.bats b/test.bats index 48965fd..96bf6d5 100755 --- a/test.bats +++ b/test.bats @@ -2,7 +2,7 @@ setup() { DIR="$( cd "$( dirname "$BATS_TEST_FILENAME" )" >/dev/null 2>&1 && pwd )" - PATH="$DIR:$PATH" + PATH="$DIR/bin:$PATH" } @test "can run" {