You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
feat: warn users when template deviates from actual variables #9
The dotenv package in Deno has a cool feature where it checks the output example env (e.g. .env.example) and warns you if it is different from your current environment file (.env or whatever you are using), would be cool to add this!
changed the title [-]Warn users when template deviates from actual variables[/-][+]feat(v1): warn users when template deviates from actual variables[/+]on Apr 5, 2024
changed the title [-]feat(v1): warn users when template deviates from actual variables[/-][+]feat: warn users when template deviates from actual variables[/+]on Jun 2, 2024
thats pretty interesting, is this being implemented?
@devlulcas Unfortunately not yet. I haven't written Gleam in almost two years now. Perhaps when I do again, I will find cause to finally work on this. Happy to merge a PR if you're interested though!
Sorry for the late response but I am not getting updates from GitHub for whatever reason, the breaking change is fine, I will bump the version to indicate it, and optionally, people can stay/rollback to a version of this library without the feature should they prefer that.
Activity
[-]Warn users when template deviates from actual variables[/-][+]feat(v1): warn users when template deviates from actual variables[/+][-]feat(v1): warn users when template deviates from actual variables[/-][+]feat: warn users when template deviates from actual variables[/+]devlulcas commentedon Jul 29, 2025
thats pretty interesting, is this being implemented?
aosasona commentedon Jul 29, 2025
@devlulcas Unfortunately not yet. I haven't written Gleam in almost two years now. Perhaps when I do again, I will find cause to finally work on this. Happy to merge a PR if you're interested though!
yanshuy commentedon Jun 28, 2026
I've opened a reference implementation in #37.
It implements support for warning when variables defined in {path}.example are missing from the loaded environment.
One question I'd appreciate feedback on:
Happy to go either way.
aosasona commentedon Jul 18, 2026
Hi @yanshuy
Sorry for the late response but I am not getting updates from GitHub for whatever reason, the breaking change is fine, I will bump the version to indicate it, and optionally, people can stay/rollback to a version of this library without the feature should they prefer that.