To prevent usage of the project code without initializing (i.e. running init.sh at the beginning of your session), we could introduce a task that checks for a minimum available space in the cache_dir folder of the pixi configuration, and warns the user if they're running with a "wrong" cache directory.
For example, this bash snippet gives the current free space on the file system where cache_dir is located:
We could use this - or a (platform-independent) Python equivalent from a minimal environment in pixi - to fail early if there's not enough space available. What do you think, @tibuch?
To prevent usage of the project code without initializing (i.e. running
init.sh
at the beginning of your session), we could introduce a task that checks for a minimum available space in thecache_dir
folder of thepixi
configuration, and warns the user if they're running with a "wrong" cache directory.For example, this bash snippet gives the current free space on the file system where
cache_dir
is located:We could use this - or a (platform-independent) Python equivalent from a minimal environment in pixi - to fail early if there's not enough space available. What do you think, @tibuch?