Hierarchical .env file loading with `dotenv-recursive` option
- Dominant language
- Rust
- Stars
- 35.8k
- Forks
- 846
- Avg merge
- 27m
- Merged PRs (30d)
- 3
Description
Configuration of projects I am working on is split between the directories where a parent directory defines some common settings in `.env` file, while child projects have their own additional settings. Basically, there is a file system layout like this:
```
foundry
|
+ .env # defines common settings
+ projects
|
+ project1
|
+ .env # defines project-specific settings
+ justfile
+
|
+ project2
|
+ .env # defines project-specific settings
+ justfile
+
```
I tried to make `just` respect `.env` parent directory recursion with `dotenv-recursive` option as described [here](https://github.com/casey/just/issues/469#issue-489476767):
```just
# controls whether or not to search parent directories recursively, up to the root, defaults to `true`
set dotenv-recursive := true
```
However, I get an error with just 1.42.4:
```
error: Unknown setting `dotenv-recursive`
```
Is this option named differently or not implemented? In any case, its presence is indispensable in certain scenarios.
P.S. Kindly consider to set up a sponsorship page so we can pay you back for this more than useful project
Contributor guide
Assessment
This issue has not been assessed yet.