Skip to content

feature: Allow overriding with other env files#44

Merged
java-james merged 4 commits into
java-james:masterfrom
e-e:master
Aug 20, 2025
Merged

feature: Allow overriding with other env files#44
java-james merged 4 commits into
java-james:masterfrom
e-e:master

Conversation

@e-e

@e-e e-e commented Aug 9, 2021

Copy link
Copy Markdown

Instead of managing multiple env files with duplicate data, this adds a way to provide additional env files to use as overrides. The idea here being that there would be a "base" env file, and then environment-specific env files which would override a subset of the base env file values.

There were some auto-formatting changes, but I tried to run them against dartfmt and it said there were no changes to be made 🤷
Screen Shot 2021-08-08 at 7 35 16 PM
Screen Shot 2021-08-08 at 7 35 19 PM

@e-e e-e changed the title [Feature] Allow overriding with other env files feature: Allow overriding with other env files Aug 9, 2021
renaming and additional readme

revert pubspec.lock changes

increment minor version level
@java-james

Copy link
Copy Markdown
Owner

Thanks for the PR just a note to say aware it's open and will make time to review and see how this aligns with larger .env libraries in regards to usage

@e-e

e-e commented Mar 22, 2022

Copy link
Copy Markdown
Author

Hey @java-james. No pressure on the PR, but just wanted to report back that we are currently successfully using this addition in our app

@SAGV

SAGV commented May 1, 2023

Copy link
Copy Markdown

This would be so good to have!

@java-james

Copy link
Copy Markdown
Owner

@e-e are you interested and available to update this PR to resolve existing conflicts?

@SAGV

SAGV commented Dec 19, 2024

Copy link
Copy Markdown

Would be really nice to have it to work!

@e-e

e-e commented Jan 3, 2025

Copy link
Copy Markdown
Author

@java-james Hey! I won't have time to look at this for the foreseeable future, so if someone else wants to take it on by all means

@StephenBrough

Copy link
Copy Markdown

@java-james @e-e I think I've fixed the conflicts. What's the best way to send the fixes up?

@e-e

e-e commented Jan 26, 2025

Copy link
Copy Markdown
Author

@StephenBrough

do you want to open a pull request against my fork?

@e-e

e-e commented Apr 16, 2025

Copy link
Copy Markdown
Author

@java-james sorry for the delay. Thanks to @StephenBrough the conflicts have been resolved

@java-james

Copy link
Copy Markdown
Owner

Beauty, thanks. I will get this reviewed.

@java-james

java-james commented Aug 20, 2025

Copy link
Copy Markdown
Owner

I have reviewed this PR and am happy with the additional feature. Agree that it's an additional useful way to load/compose your env variables.

edit: I was able to resolve the conflict in browser :)

Waiting for workflows to run now

@java-james java-james merged commit 0c2795b into java-james:master Aug 20, 2025
1 check failed
@java-james

Copy link
Copy Markdown
Owner

Merged. Thanks for the contribution

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants