Closed DanielRuf closed 2 years ago
Overwriting existing file project.phar
So it is not overwritten? At least it also seems the bin
entry is not used only once.
@DanielRuf Thanks for reporting!
I understand where you're coming from and agree that this looks strange to say the least, but this is indeed expected behavior at the moment:
When running phar-composer, it will bundle all files from the local directory, i.e. it will include your existing project.phar
into your new project.phar
which causes the archive to grow on each run.
At the moment, this can be prevented by running this in a temporary build directory like #91. We will also likely add an option to ignore certain files via #5. I'm open for more input :+1:
Hi @clue,
thanks for the feedback. I really appreciate the time that you invest into this and the other projects. I switched to the maintained box fork as this brought many improvements and worked for my needs.
I will revisit #91 in the next weeks and try this approach. Thanks for the links. I was already aware of #5 but I was not aware of #91 =)
It seems when I run it locally multiple times it appends the same content to the same phar.