From ab872711c84a073c38cbc641f02569ededb75f7e Mon Sep 17 00:00:00 2001 From: Qubasa Date: Sat, 28 Jun 2025 22:40:55 +0700 Subject: [PATCH] Revert "templates: remove .clan-flake" This reverts commit 14eb54125606dcc65722d35ce59d5635eb43731b. --- pkgs/clan-cli/clan_cli/tests/test_create_flake.py | 2 ++ templates/clan/classic/.clan-flake | 0 templates/clan/default/.clan-flake | 0 templates/clan/minimal/.clan-flake | 0 4 files changed, 2 insertions(+) create mode 100644 templates/clan/classic/.clan-flake create mode 100644 templates/clan/default/.clan-flake create mode 100644 templates/clan/minimal/.clan-flake diff --git a/pkgs/clan-cli/clan_cli/tests/test_create_flake.py b/pkgs/clan-cli/clan_cli/tests/test_create_flake.py index af46752cd..b9790ab16 100644 --- a/pkgs/clan-cli/clan_cli/tests/test_create_flake.py +++ b/pkgs/clan-cli/clan_cli/tests/test_create_flake.py @@ -23,6 +23,7 @@ def test_create_flake( cli.run(["flakes", "create", str(flake_dir), "--template=default", "--no-update"]) + assert (flake_dir / ".clan-flake").exists() # Replace the inputs.clan-core.url in the template flake.nix substitute( flake_dir / "flake.nix", @@ -60,6 +61,7 @@ def test_create_flake_existing_git( cli.run(["flakes", "create", str(flake_dir), "--template=default", "--no-update"]) + assert (flake_dir / ".clan-flake").exists() # Replace the inputs.clan-core.url in the template flake.nix substitute( flake_dir / "flake.nix", diff --git a/templates/clan/classic/.clan-flake b/templates/clan/classic/.clan-flake new file mode 100644 index 000000000..e69de29bb diff --git a/templates/clan/default/.clan-flake b/templates/clan/default/.clan-flake new file mode 100644 index 000000000..e69de29bb diff --git a/templates/clan/minimal/.clan-flake b/templates/clan/minimal/.clan-flake new file mode 100644 index 000000000..e69de29bb