-
Notifications
You must be signed in to change notification settings - Fork 346
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
dotenv .env files from imports are not added to config.env #1582
Comments
This is expected. Paths and strings paths are resolved from the root of the project, ie. the top-level You can add additional paths with |
Hi, thank you for your response. I just tried this, but it seems like there's some string validation that breaks this. The error I'm getting is Here's the full log: Error Log
|
Describe the bug
Using both
devenv.yaml
and
submodule/devenv.nix
submodule/.env
breaks
devenv shell
.To reproduce
This issue is related to the project structure, so I created a git repo instead of a gist. Here it is: https://github.com/Maximilian-Staab/devenv-env-loading-issue
Expextation
devenv shell
with submodules that usedotenv.enable = true
merges all applicable.env
files.Error Log
``` devenv shell • Building shell ... • Using Cachix: devenv error: … while calling the 'derivationStrict' builtin at :9:12: 8| 9| strict = derivationStrict drvAttrs; | ^ 10|✔ Building shell in 0.6s.
Error: × Failed to run command
/nix/store/wssamm2w2917xv940zkhrhhq0rd5xilc-nix-2.24-devenv/bin/nix --show-trace --extra-experimental-features nix-command --extra-experimental-features flakes --option warn-dirty false --keep-going --max-jobs 6 --option eval-cache false │ --option extra-substituters https://devenv.cachix.org --option extra-trusted-public-keys nixpkgs-python.cachix.org-1:hxjI7pFxTyuTHn2NkvWCrAUcNZLNS3ZAvfYNuYifcEU= devenv.cachix.org-1:w1cLUi8dv3hnoSPGAuibQv+f9TZLr6cv/Hm9XgU50cw= print-dev-env --profile /home/max/ │ Workspace/temp/.devenv/gc/shell -vv --log-format internal-json
╰─▶ Nix command failed: exit status: 1
The text was updated successfully, but these errors were encountered: