Ocramius / PackageVersions

:package: Composer addon to efficiently get installed packages' version numbers
MIT License
3.22k stars 67 forks source link

Option to ignore version of rootPackage #142

Closed qurben closed 4 years ago

qurben commented 4 years ago

We depend on a package which depends on this package. We noticed that Versions.php updates for every version we put out, even when the changes in our repository are not part of the deployed code.

We would like to see that if we don't change our composer.lock file or add/remove/rename php files, the contents of vendor do not change.

Is there a way to disable generating versions for the rootPackage or make sure that the rootPackage is always the same version?

Ocramius commented 4 years ago

Heya,

Not sure why that would be necessary?

Marco Pivetta

http://twitter.com/Ocramius

http://ocramius.github.com/

On Sun, May 24, 2020 at 9:10 PM Gerben Oolbekkink notifications@github.com wrote:

We depend on a package which depends on this package. We noticed that Versions.php updates for every version we put out, even when the changes in our repository are not part of the deployed code.

We would like to see that if we don't change our composer.lock file or add/remove/rename php files, the contents of vendor do not change.

Is there a way to disable generating versions for the rootPackage or make sure that the rootPackage is always the same version?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/Ocramius/PackageVersions/issues/142, or unsubscribe https://github.com/notifications/unsubscribe-auth/AABFVEGATZ3CBEVQMOKGELTRTFWLZANCNFSM4NJAIL3Q .

qurben commented 4 years ago

It produces noise in our deployment setup, every commit is also a change in Versions.php, but we rather not remove Versions.php altogether as this might break something we depend on.

If there is a nice way to configure this it would be very nice, else we would just script something to remove the line after it is generated.

Ocramius commented 4 years ago

If you are OK with running with an outdated vendor, you can run installation with --no-scripts at the cost of some runtime performance down the line if version resolution is required.

Marco Pivetta

http://twitter.com/Ocramius

http://ocramius.github.com/

On Sun, May 24, 2020 at 9:43 PM Gerben Oolbekkink notifications@github.com wrote:

It produces noise in our deployment setup, every commit is also a change in Versions.php, but we rather not remove Versions.php altogether as this might break something we depend on.

If there is a nice way to configure this it would be very nice, else we would just script something to remove the line after it is generated.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/Ocramius/PackageVersions/issues/142#issuecomment-633285317, or unsubscribe https://github.com/notifications/unsubscribe-auth/AABFVEGGLJDROTRTRNBOWKTRTF2HNANCNFSM4NJAIL3Q .

Ocramius commented 4 years ago

This will be implemented in https://github.com/Ocramius/PackageVersions/milestone/22