typisttech / imposter

Wrapping all composer vendor packages inside your own namespace. Intended for WordPress plugins
https://www.typist.tech/projects/imposter
MIT License
108 stars 16 forks source link

Random permission errors on some Composer installs #394

Open kennydude opened 2 years ago

kennydude commented 2 years ago

I seem to get almost random permission errors about Imposter trying to write to files within the .git directory on dependencies,

For example:

  file_put_contents(/builds/invisibledragon/bookings/id-bookings/vendor/symfony/polyfill-php81/.git/objects/pack/pack-021b938e07a189845db79ec8f6de13e2d4a8b3f6.pack): failed to open stream: Permission denied 

Would it be wise to ignore the .git folders when finding files to replace?

tangrufus commented 2 years ago

Would it be wise to ignore the .git folders when finding files to replace?

Agree we should skip VCS folders (e.g: .svn, .git).

Can you send a pull request please?