helhum / dotenv-connector

Makes values from a .env file available as environment variables for composer based projects
MIT License
153 stars 17 forks source link

Include of autogenerating files are not idempotent #44

Open websi opened 3 months ago

websi commented 3 months ago

The path to file dotenv-include.php is an absolute path. Composer use an hash to the file for the include. So the hash changes for different paths. This is very common in the CI system. This prevents effective caching of the generated files.

Similar use cases from composer: https://github.com/composer/composer/issues/7049 and https://github.com/composer/composer/issues/11226

Diff Image:

image

I will provide an patch for that.