Merge pull request 'clan-cli: Remove flake-registry set to none in get_clan_nix_attrset' (#2862) from Qubasa/clan-core:main into main
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/2862
This commit is contained in:
@@ -100,9 +100,6 @@ def get_clan_nix_attrset(clan_dir: Flake | None = None) -> ClanExports:
|
|||||||
[
|
[
|
||||||
"--json",
|
"--json",
|
||||||
"--impure",
|
"--impure",
|
||||||
"--option",
|
|
||||||
"flake-registry",
|
|
||||||
"",
|
|
||||||
"--expr",
|
"--expr",
|
||||||
eval_script,
|
eval_script,
|
||||||
]
|
]
|
||||||
@@ -142,10 +139,6 @@ class FoundTemplate:
|
|||||||
|
|
||||||
|
|
||||||
def copy_from_nixstore(src: Path, dest: Path) -> None:
|
def copy_from_nixstore(src: Path, dest: Path) -> None:
|
||||||
if not src.is_dir():
|
|
||||||
msg = f"The source path '{src}' is not a directory."
|
|
||||||
raise ClanError(msg)
|
|
||||||
|
|
||||||
# Walk through the source directory
|
# Walk through the source directory
|
||||||
for root, _dirs, files in src.walk(on_error=log.error):
|
for root, _dirs, files in src.walk(on_error=log.error):
|
||||||
relative_path = Path(root).relative_to(src)
|
relative_path = Path(root).relative_to(src)
|
||||||
|
|||||||
Reference in New Issue
Block a user