The Wayback Machine - https://web.archive.org/web/20210816170322/https://github.com/symfony/flex
Skip to content
main
Switch branches/tags
Code

Latest commit

…themasch)

This PR was merged into the 1.13-dev branch.

Discussion
----------

do not try to write a cache entry if there is no cache key

Writing to the cache with an empty key will fail with "failed to open stream: Is a directory", so do not try to do that.

We noticed this when cloudflare - or the backend service - responded with a "last-modified" header for our CI servers (AWS) but not for our local system. This triggered the condition to become true and it tries to write a cache file without a filename.

I hope this is the correct place to fix it, but from what I see, this code should not try to write a cache with am empty key, correct?

Here is how a `composer install` failed for us (because of this?):
```
  [ErrorException]
  file_put_contents(/tmp/composer/cache/repo/https---flex.symfony.com/): failed to open stream: Is a directory
```

Commits
-------

e4bb94d do not write a cache entry if there is no cache key
d81196c

Git stats

Files

Permalink
Failed to load latest commit information.

Symfony Flex helps developers create Symfony applications, from the most simple micro-style projects to the more complex ones with dozens of dependencies.

Discover the available recipes.