nix print-dev-env
assumes that PATH and XDG_DATA_DIRS actually exist
#6809
Labels
nix print-dev-env
assumes that PATH and XDG_DATA_DIRS actually exist
#6809
I use direnv with strict_env enabled, and with this Hand-rolled Nix flakes integration
This demo.sh script effectively shows off what direnv does when I cd into a flake-enabled project:
This recently started failing for me after #6702. Here's what started happening:
Note how
nix print-dev-env
now assumes thatXDG_DATA_DIRS
exists:(There was already the same problem with
PATH
, but I've always had thatenvironment variable defined, I just don't have a
XDG_DATA_DIRS
set toanything.)
I'll put together a PR to not assume that these environment variables are
actually set.
The text was updated successfully, but these errors were encountered: