DavHau
020c74de92
vars-check: enable debug logging for cache misses
2025-06-18 14:22:57 +00:00
Jörg Thalheim
097024e8a9
fix: correctly check existence of CLAN_TEST_STORE paths in cache
...
The flake cache was only checking existence for paths starting with
NIX_STORE_DIR (defaulting to /nix/store), but not for paths in the
test store when CLAN_TEST_STORE is set. This caused the cache to
return stale references to paths that had been garbage collected.
This fix updates the is_cached method to also check for paths in
the test store, preventing cache misses during tests.
2025-06-17 17:21:06 +02:00
Johannes Kirschbauer
32b5b7dc93
feat(flake): add function to get input names
2025-06-11 20:21:29 +02:00
Johannes Kirschbauer
6b684c45c3
feat(flake/select): add apply argument
2025-06-11 20:21:29 +02:00
Johannes Kirschbauer
a98b2fb60c
Chore(complete_machines): simplify by using inventoryStore
2025-06-10 19:15:07 +02:00
Johannes Kirschbauer
7d3b5ecec9
Chore(flake.py): remove unused uncached_nix_eval_with_args
2025-06-10 19:15:07 +02:00
Johannes Kirschbauer
80ead1bf4d
Refactor(clanInternals): remove depending on clanInternals.inventory
2025-06-10 17:43:59 +02:00
hsjobeki
931f0b00d0
Merge pull request 'chore(api/create_clan): remove unused reponse class' ( #3907 ) from api-narrowing into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/3907
2025-06-09 19:00:27 +00:00
Johannes Kirschbauer
ca8a228fba
chore(flake): move 'inputs-from' into templates handling
2025-06-09 20:40:20 +02:00
lassulus
4d07e90930
select: fix error message showing nonsense
2025-06-06 10:12:15 +02:00
lassulus
e96099d588
select: fix non escaped '
2025-06-06 10:12:15 +02:00
lassulus
c7384a60c2
clan_lib flake_test: fix on darwin
2025-05-23 12:29:34 +02:00
lassulus
f7f3173224
clan_cli flake_test: fix on non sandboxed runs
2025-05-20 16:08:02 +02:00
lassulus
ed89352ea1
clan-cli: clan_cli.dirs -> clan_lib.dirs
2025-05-20 12:08:30 +02:00
lassulus
9a0c6f55bd
clan-cli: clan_cli.cmd -> clan_lib.cmd
2025-05-19 19:07:24 +02:00
lassulus
cb74273da4
clan-cli: move clan_cli.nix to clan_lib.nix
2025-05-19 18:40:36 +02:00
lassulus
1861c4447f
clan_lib flake: remove redundant store definition
2025-05-19 17:49:12 +02:00
lassulus
107bc91fa1
clan_lib flake: test if cache gets invalidated with nix gc
2025-05-19 17:48:46 +02:00
lassulus
9685e00122
clan_lib flake: get select output without nixpkgs
2025-05-19 16:11:56 +02:00
lassulus
8218bd3539
clan_lib flake: get store path from NIX_STORE_DIR
2025-05-19 16:11:56 +02:00
lassulus
102fa21b9c
clan_lib flake: check the whole tree even if we fetched all keys before
...
This is needed because nix garbage collection can remove store paths. So
the cache can become invalid because a path needs to be rebuild.
2025-05-19 16:11:56 +02:00
lassulus
1c8b8bf83d
clan_lib: move test_flake_caching into clan_lib flake folder
2025-05-18 21:35:56 +02:00
lassulus
fa052f45bd
clan_lib: move clan_lib.flake.flake to clan_lib.flake
2025-05-16 19:28:36 +02:00
Johannes Kirschbauer
8ddf0e50d3
Fix: dynamically import clan_cli in flake methods
...
This is a temporary workaround to solve cyclic imports all these modules should be moved to clan_lib
soon afterwards
2025-05-16 17:02:58 +02:00
Johannes Kirschbauer
fe0507b47c
refactor: move clan_cli.error to clan_lib.error
2025-05-16 16:14:39 +02:00
lassulus
5423b9af41
clan_cli: move flake class to clan_lib
2025-05-16 13:38:47 +02:00