-
-
Notifications
You must be signed in to change notification settings - Fork 69
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Option to ignore version of rootPackage #142
Comments
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 ***@***.***> 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
<#142>, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AABFVEGATZ3CBEVQMOKGELTRTFWLZANCNFSM4NJAIL3Q>
.
|
It produces noise in our deployment setup, every commit is also a change in 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. |
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 ***@***.***> 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
<#142 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AABFVEGGLJDROTRTRNBOWKTRTF2HNANCNFSM4NJAIL3Q>
.
|
This will be implemented in https://github.com/Ocramius/PackageVersions/milestone/22 |
…NAME` constant This simplifies the tool to no longer be a plugin: `PackageVersions\Versions` is now a much simpler class that is no longer generated/written to disk at installation, and `ocramius/package-versions` is no longer a `"type": "composer-plugin"`, but rather a more usual `"type": "library"` package. This: * Fixes #138 - this library no longer changes `vendor` post-installation * Fixes #142 - the `rootPackage` version is now detected via composer, and no longer leads to changes in `vendor/ocramius/package-versions/src/PackageVersions/Versions.php` at each change of source root in a project * Fixes #152 - when `"lock": false` is used in composer, since we no longer access lock file information from sources of this package * Fixes #107 - writing to `vendor` is no longer happening from this library, so no file access rights should be needed.
…NAME` constant This simplifies the tool to no longer be a plugin: `PackageVersions\Versions` is now a much simpler class that is no longer generated/written to disk at installation, and `ocramius/package-versions` is no longer a `"type": "composer-plugin"`, but rather a more usual `"type": "library"` package. This: * Fixes #138 - this library no longer changes `vendor` post-installation * Fixes #142 - the `rootPackage` version is now detected via composer, and no longer leads to changes in `vendor/ocramius/package-versions/src/PackageVersions/Versions.php` at each change of source root in a project * Fixes #152 - when `"lock": false` is used in composer, since we no longer access lock file information from sources of this package * Fixes #107 - writing to `vendor` is no longer happening from this library, so no file access rights should be needed.
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 ofvendor
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?
The text was updated successfully, but these errors were encountered: