Skip to content

TMPDIR not writeable; how to set TMPDIR with .env? #1269

Answered by casey
davised asked this question in Q&A
Discussion options

You must be logged in to vote

I love that just has made it onto a compute cluster!

The issue is that .env files change environment variables for child processes of just, e.g. recipe lines and shebang recipes, but not for just itself. So if you set TMPDIR in a .env file or with export TMPDIR := "/tmp", just will still use the old tempdir.

This would be very easy to configure though, we could add a setting specifically for setting the tempdir that just uses, like so:

set tempdir := "/tmp"

Would that work for your use-case?

Replies: 3 comments 11 replies

Comment options

You must be logged in to vote
1 reply
@davised
Comment options

Comment options

You must be logged in to vote
10 replies
@davised
Comment options

@davised
Comment options

@davised
Comment options

@davised
Comment options

@casey
Comment options

Answer selected by davised
Comment options

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