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

CLI does not parse .env files with multi line variables at all #812

Closed
Bertg opened this issue May 31, 2024 · 0 comments · Fixed by #813
Closed

CLI does not parse .env files with multi line variables at all #812

Bertg opened this issue May 31, 2024 · 0 comments · Fixed by #813
Labels

Comments

@Bertg
Copy link

Bertg commented May 31, 2024

Describe the bug

I get a Malformed entry when trying to run the latest cli version. I can confirm that this issue also exists in 3.19.4.

❌ Malformed entry MIIEpQIBAAKCAQEAr9jabmSaRKcaf7KK8qmWWDQdU3+fjVuYNFLGiRXQl+o3HyaG

We an .env file at the root of our project. The part of the file where it seems to trip up on is:

FILE_DOWNLOAD_RSA_KEY='-----BEGIN RSA PRIVATE KEY-----
MIIEpQIBAAKCAQEAr9jabmSaRKcaf7KK8qmWWDQdU3+fjVuYNFLGiRXQl+o3HyaG
...

To Reproduce

  1. Setup a crowdin project
  2. Add a .env file at the root, containing a multi line variable, encompassed by single quotes.
  3. Run crowdin download for example

Expected behavior

The commands should just work

Environment:

  • OS: Mac OS (latest)
  • Version: 4.0.0

Additional context

This issue is derived from an issue first reported in crowding/github-action

@andrii-bodnar andrii-bodnar changed the title CLI does not parse .env files with multi line variables at all: CLI does not parse .env files with multi line variables at all Jun 11, 2024
@andrii-bodnar andrii-bodnar linked a pull request Jun 11, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants