cachix / devenv

Fast, Declarative, Reproducible, and Composable Developer Environments
https://devenv.sh
Apache License 2.0
3.61k stars 262 forks source link

dotenv integration doesn't support non-root-level .env files #1208

Open euphemism opened 2 weeks ago

euphemism commented 2 weeks ago

Describe the bug

I am unable to supply a path to a .env file as the value for dotenv.filename. The following error is printed:

error:
error: Failed assertions:
- The dotenv filename must start with '.env'.

To reproduce

https://gist.github.com/euphemism/5fec2e49bf3ec99155452ff9861cd612

Version

devenv 1.0.5 (aarch64-darwin)

domenkozar commented 2 weeks ago

We can't really support .env in subdirectories at the moment without sacrificing performance.

euphemism commented 1 week ago

Interesting. Why is that?