Sitelet https://github.com/casey/just/discussions/2769
Skip to content
Discussion options

You must be logged in to vote

This is now supported directly. On just 1.51.0 or newer, put this at the top of the justfile:

set no-cd

recipe-a:
    pwd

All recipes in that module will run from the caller's current working directory instead of changing to the directory containing the justfile.

If you want one fixed directory for the whole module instead, use:

set working-directory := 'path/from-the-justfile-directory'

Both settings can be overridden for individual recipes with [no-cd] or [working-directory: '...']. Current documentation: global no-cd and working-directory.

For older just versions, use --working-directory . together with --justfile, or add [no-cd] to each recipe. If this solves the file-wide configur…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by PaulRBerg
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants