Script and Shebang Recipe Temporary Files
Both script and shebang recipes write the recipe body to a temporary file for
execution. Script recipes execute that file by passing it to a command, while
shebang recipes execute the file directly. Shebang recipe execution will fail
if the filesystem containing the temporary file is mounted with noexec or is
otherwise non-executable.
The directory that just writes temporary files to may be configured in a
number of ways, from highest to lowest precedence:
-
Globally with the
--tempdircommand-line option or theJUST_TEMPDIRenvironment variable1.41.0. -
On a per-module basis with the
tempdirsetting. -
Globally on Linux with the
XDG_RUNTIME_DIRenvironment variable. -
Falling back to the directory returned by std::env::temp_dir.