Note that justfiles are order-insensitive (#1529)

This commit is contained in:
Casey Rodarmor 2023-01-24 20:37:47 -08:00
parent 1a5f07c672
commit 94a93c97a0

View File

@ -2208,7 +2208,10 @@ A
The `!include` directive path can be absolute or relative to the location of The `!include` directive path can be absolute or relative to the location of
the justfile containing it. `!include` directives must appear at the beginning the justfile containing it. `!include` directives must appear at the beginning
of a line. line. of a line.
Justfiles are insensitive to order, so included files can reference variables
and recipes defined after the `!include` directive.
`!include` directives are only processed before the first non-blank, `!include` directives are only processed before the first non-blank,
non-comment line. non-comment line.