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

chore: fix environment variable parsing #1505

Merged
merged 1 commit into from
Nov 13, 2023
Merged

Conversation

codebytere
Copy link
Member

@codebytere codebytere commented Nov 13, 2023

Closes #1504.

Fixes an issue where complex environment variables with multiple equal signs would be incorrectly parsed. This was happening because our env var parsing was very simplistic and always split at equals signs.

We should use an existing env var parser instead, written and maintained by a Node.js maintainer. It has no dependencies.

@codebytere codebytere requested a review from a team as a code owner November 13, 2023 10:22
@coveralls
Copy link

Coverage Status

coverage: 87.238% (+0.008%) from 87.23%
when pulling d2fb5cb on fix-env-parsing
into c6601d9 on main.

Copy link
Member

@VerteDinde VerteDinde left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice!

Copy link
Member

@felixrieseberg felixrieseberg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice polish!

@felixrieseberg felixrieseberg merged commit b70b9db into main Nov 13, 2023
@felixrieseberg felixrieseberg deleted the fix-env-parsing branch November 13, 2023 16:57
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.

Environment variables with extra '=' don't work
4 participants