From f8abcfa1caae23f57158f95a28d1ccde2785191d Mon Sep 17 00:00:00 2001 From: Luc Perkins Date: Mon, 1 Jul 2024 14:55:38 -0700 Subject: [PATCH] Fix path of test flake.lock in CI --- .github/workflows/ci.yaml | 2 +- src/flake.rs | 2 +- tests/{flake.cel.lock => flake.cel.0.lock} | 0 3 files changed, 2 insertions(+), 2 deletions(-) rename tests/{flake.cel.lock => flake.cel.0.lock} (100%) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 38a1650..e48018e 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -49,7 +49,7 @@ jobs: nix develop -c \ cargo run -- \ --condition "supportedRefs.contains(gitRef) && numDaysOld < 30 && owner == 'NixOS'" \ - ./tests/flake.cel.clean.0.lock + ./tests/flake.cel.0.lock check-flake-dirty: name: Check flake.lock test (dirty 😈) diff --git a/src/flake.rs b/src/flake.rs index e643a2c..84ebd93 100644 --- a/src/flake.rs +++ b/src/flake.rs @@ -172,7 +172,7 @@ mod test { let supported_refs: Vec = serde_json::from_str(include_str!("../allowed-refs.json")).unwrap(); - let path = PathBuf::from("tests/flake.cel.lock"); + let path = PathBuf::from("tests/flake.cel.0.lock"); for (condition, expected) in cases { let flake_lock = FlakeLock::new(&path).unwrap(); diff --git a/tests/flake.cel.lock b/tests/flake.cel.0.lock similarity index 100% rename from tests/flake.cel.lock rename to tests/flake.cel.0.lock