Problem/Motivation

When using this module with symfony/dotenv:^6.0, the following error is thrown when running drush dotenv:dump:

Unable to read the "%dotenv.project_dir%/.env/.env" environment file.

Proposed resolution

Pass the project directory to the DotenvDumpCommand constructor instead of the path to the .env file.

Issue fork dotenv-3374066

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

DieterHolvoet created an issue. See original summary.

  • DieterHolvoet committed 0d902054 on 1.2.x
    Issue #3374066 by DieterHolvoet: Unable to read the "%dotenv.project_dir...
dieterholvoet’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.