Skip to content
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

dotenv: support export declarations in .env files #1226

Merged
merged 1 commit into from
May 23, 2024
Merged

Conversation

sandydoo
Copy link
Member

@sandydoo sandydoo commented May 23, 2024

For example, export FOO=1.

Fixes #1207.

We can't use non-capturing groups, so this is the best I could come up with.

I couldn't find a spec for the .env format. But some of the parsers support multiline strings, escape quotes, and what not. That's going to be rough to do inside Nix...

@sandydoo sandydoo added the bug Something isn't working label May 23, 2024
@domenkozar
Copy link
Member

https://hexdocs.pm/dotenvy/dotenv-file-format.html does specify some of the options

Most requested would be variable substitution.

@domenkozar domenkozar merged commit 9261ce8 into main May 23, 2024
189 of 260 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

dotenv integration unable to handle .env files with export lines
2 participants