Skip to content

Commit

Permalink
fix(build): fluidattacks#546 string context on projectSrc
Browse files Browse the repository at this point in the history
- `self.sourceInfo.outPath` brings a string context with it
- Drop it for this pattern to work
- Idempotent noop in non-flake scenario

fixes: fluidattacks#577 (has more context)
  • Loading branch information
blaggacao committed Sep 18, 2021
1 parent 07e4587 commit 98944cc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/args/project-path/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@ if hasPrefix "/" rel
then
(builtins.path {
name = if rel == "/" then "src" else builtins.baseNameOf rel;
path = projectSrc + rel;
path = ((builtins.unsafeDiscardStringContext projectSrc) + rel);
})
else abort "projectPath arguments must start with: /, currently it is: ${rel}"

0 comments on commit 98944cc

Please sign in to comment.