Skip to content

Commit fa7d7b5

Browse files
committed
HACK: Assume lockFileRel to cwd during execution
1 parent e68bff6 commit fa7d7b5

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

modules/drv-parts/lock/default.nix

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,9 @@
4646
check=True, text=True, capture_output=True)
4747
.stdout.strip())
4848
lock_path_rel = Path('${cfg.lockFileRel}') # noqa: E501
49-
lock_path = repo_path / lock_path_rel.relative_to(lock_path_rel.anchor)
49+
# lock_path = repo_path / lock_path_rel.relative_to(lock_path_rel.anchor)
50+
lock_path = \
51+
Path('.').absolute() / lock_path_rel.relative_to(lock_path_rel.anchor)
5052
lock_path.parent.mkdir(parents=True, exist_ok=True)
5153
5254

0 commit comments

Comments
 (0)