-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Allow loading environment variables from given path #5723
Comments
I'm interested in this solution because I have a monorepo structure with the |
Hi @altugbakan thanks for your suggestion! Would you still be willing to work on this? |
Hey, I would like to! |
Awesome! Assigning to you |
Opened #8346 for this |
Hey, I tried my hand, but don’t currently have the capacity to work on this. Anyone who wants to solve this can check this out. |
No problem @altugbakan, thanks for your time and effort |
Component
Forge, Cast, Chisel
Describe the feature you would like
Now, the
.env
file is only loaded from the project root. A CLI flag can be added to load the.env
file from another directory. This will be helpful if Foundry is used within a monorepo that uses a single.env
file.The lines that load the
.env
file can be seen here:foundry/crates/cli/src/utils/mod.rs
Lines 181 to 203 in 8dd7ad2
I would also like to work on this.
Additional context
The code can be seen below:
The text was updated successfully, but these errors were encountered: