Problem/Motivation
It seems like the workaround that was added in #3476775: You have requested a non-existent parameter "site.path" doesn't fix the problem for all versions of Drush. At some point Drush stopped storing its commands in the Drupal container and started to use a separate container. Because of that, Drush command service definitions cannot be altered from service providers anymore.
Steps to reproduce
Test the module using Drupal 8.9.20 and Drush 9.7.3.
Proposed resolution
Let's just remove Drupal 8 support, because attempting to provide a workaround for this issue as well would be too much effort for a Drupal core version that has long been unsupported.
Issue fork dotenv-3480487
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
Comment #2
dieterholvoet commentedComment #3
dieterholvoet commentedComment #5
dieterholvoet commentedComment #7
dieterholvoet commented