Skip to content

dotenv appears unmaintained and does not support multiline values #2350

Description

@arjenzorgdoc

CLI Version

2.38.0

Operating System and Architecture

  • macOS (arm64)
  • macOS (x86_64)
  • Linux (i686)
  • Linux (x86_64)
  • Linux (armv7)
  • Linux (aarch64)
  • Windows (i686)
  • Windows (x86_64)

Operating System Version

Ubuntu 22.04.5 LTS

Link to reproduction repository

No response

CLI Command

No response

Exact Reproduction Steps

$ cat > .env << EOF
PRIVATE_KEY1="-----BEGIN PRIVATE KEY-----
...
-----END PRIVATE KEY-----"
EOF
$ sentry-cli --version
  WARN    2025-01-20 15:40:08.039875680 +01:00 Failed to load .env file: Error parsing line: '"', error at line index: 0
sentry-cli 2.38.0

See this similar PR in an unrelated project: Gusto/scope#107

Expected Results

Support multiline env vars.

Actual Results

A warning:

  WARN    2025-01-20 15:40:08.039875680 +01:00 Failed to load .env file: Error parsing line: '"', error at line index: 0

Logs

  WARN    2025-01-20 15:40:08.039875680 +01:00 Failed to load .env file: Error parsing line: '"', error at line index: 0

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions