You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+6Lines changed: 6 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -941,6 +941,11 @@ it can't appear alongside `set working-directory` in the same `justfile`.
941
941
Recipe-level attributes still take precedence: `[working-directory(...)]`
942
942
overrides both, and `[no-cd]` on a recipe overrides `set working-directory`.
943
943
944
+
Path resolution remains the same by default: backticks, functions like
945
+
`read()`, and shell() calls use the module's working directory even if `no-cd`
946
+
is set. To also resolve these relative to the invocation directory when
947
+
skipping `cd`, turn on `set no-cd-strict := true`.
948
+
944
949
You can override the working directory for all recipes with
945
950
`set working-directory := '…'`:
946
951
@@ -1033,6 +1038,7 @@ foo:
1033
1038
|`fallback`| boolean |`false`| Search `justfile` in parent directory if the first recipe on the command line is not found. |
1034
1039
|`ignore-comments`| boolean |`false`| Ignore recipe lines beginning with `#`. |
1035
1040
|`no-cd`| boolean |`false`| Don't change directory before executing recipes and evaluating backticks, unless overridden by recipe attributes. |
1041
+
|`no-cd-strict`| boolean |`false`| When `no-cd` is set, also resolve backticks, shell functions, and path helpers relative to the invocation directory instead of the module directory. |
0 commit comments