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
That would be beneficial in enterprise/corporate environment if justfile had systemwide (eg. /etc/justfile) location with and read as first + override any other justfile.
My suggestions at first iterations is:
Search priority for justfile:
/etc/justfile
/usr/share/just/justfile
/usr/local/etc/justfile
/etc/xdg/justfile
If justfile couldn't be found locations above, the just can search at local dir.
2nd iteration (better):
Justfile stored locations above can store recipes that override recipes in justfile in local directory.
Ty.
The text was updated successfully, but these errors were encountered:
You could place a justfile in /justfile, and it would be found from any subdirectory. You could also place a justfile in /root/justfile, and it would work whenever you were in root's home directory. The behavior of programs like bash which search particular directories in a particular order for config files is weird, so I wouldn't want to replicate that.
It would be surprising if a systemwide justfile took priority over one found in the normal way. Similarly, I think it would be surprising if a global justfile overrode local justfile recipes.
Recipe overriding the other way, where if a local justfile recipe is missing, just will look in an outer justfile, is covered in #1036.
That would be beneficial in enterprise/corporate environment if justfile had systemwide (eg. /etc/justfile) location with and read as first + override any other justfile.
My suggestions at first iterations is:
Search priority for justfile:
If justfile couldn't be found locations above, the just can search at local dir.
2nd iteration (better):
Justfile stored locations above can store recipes that override recipes in justfile in local directory.
Ty.
The text was updated successfully, but these errors were encountered: