From 4ea1acdc1877794c214ab44d407bcced1773c357 Mon Sep 17 00:00:00 2001
From: Alex Auvolat <lx@deuxfleurs.fr>
Date: Mon, 27 Jan 2025 17:30:42 +0100
Subject: [PATCH] wip: test

---
 .woodpecker/debug.yaml | 3 ++-
 nix/compile.nix        | 1 +
 2 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/.woodpecker/debug.yaml b/.woodpecker/debug.yaml
index 06597a3b..bc38fa85 100644
--- a/.woodpecker/debug.yaml
+++ b/.woodpecker/debug.yaml
@@ -16,6 +16,7 @@ steps:
   - name: build
     image: nixpkgs/nix:nixos-22.05
     commands:
+      - echo nix-build --no-build-output --attr pkgs.amd64.debug --argstr git_version ${CI_COMMIT_TAG:-$CI_COMMIT_SHA}
       - nix-build --no-build-output --attr pkgs.amd64.debug --argstr git_version ${CI_COMMIT_TAG:-$CI_COMMIT_SHA}
 
   - name: unit + func tests
@@ -24,7 +25,6 @@ steps:
       GARAGE_TEST_INTEGRATION_EXE: result-bin/bin/garage
       GARAGE_TEST_INTEGRATION_PATH: tmp-garage-integration
     commands:
-      - nix-build --no-build-output --attr pkgs.amd64.debug --argstr git_version ${CI_COMMIT_TAG:-$CI_COMMIT_SHA}
       - nix-build --no-build-output --attr test.amd64
       - ./result/bin/garage_db-*
       - ./result/bin/garage_api-*
@@ -43,5 +43,6 @@ steps:
   - name: integration tests
     image: nixpkgs/nix:nixos-22.05
     commands:
+      - echo nix-build --no-build-output --attr pkgs.amd64.debug --argstr git_version ${CI_COMMIT_TAG:-$CI_COMMIT_SHA}
       - nix-build --no-build-output --attr pkgs.amd64.debug --argstr git_version ${CI_COMMIT_TAG:-$CI_COMMIT_SHA}
       - nix-shell --attr ci --run ./script/test-smoke.sh || (cat /tmp/garage.log; false)
diff --git a/nix/compile.nix b/nix/compile.nix
index 2755f5be..9630b5dd 100644
--- a/nix/compile.nix
+++ b/nix/compile.nix
@@ -134,4 +134,5 @@ let
 in pkgs.rustBuilder.makePackageSet ({
   inherit release packageFun packageOverrides codegenOpts rootFeatures;
   target = rustTarget;
+  workspaceSrc = pkgs.lib.cleanSource ../.;
 } // toolchainOptions)