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
Rewrote package to use composer-runtime-api:^2.0
and no longer keep an internal generated map
#146
Conversation
… an internal generated map This massively simplifies the whole design, as it allows us to get rid of most of the complexity of the package. Sadly, due to the API of `Versions::ROOT_PACKAGE_NAME`, we still need to generate code during installation, and the composer plugin needs to be maintained long-term, but overall we can deprecate its usage, and endorse moving to `composer/composer:^2.0.0`.
This constant is the only reason why this package still needs to exist as a composer plugin: removing it allows releasing a new major version that no longer needs to modify files post-installation.
… replaced by mutation test + type coverage
…permutations during composer installation
…ow `branch-alias` recognition This allows deeper dev-dependencies, which do rely on `ocramius/package-versions` themselves, to be installed. Without this, the current active branch has no stable version, and dependencies can no longer detect it as compatible.
…ugs are out of scope for this package
…, which is (fairly) pure/immutable
*/ | ||
public const VERSIONS = %s; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Ocramius It seems like removing this seems to break compatibility to ocramius/proxy-manager:2.8
I get the following error:
!! Fatal error: Uncaught Error: Undefined class constant 'VERSIONS' in /tmp/sulu-develop.localhost/vendor/ocramius/proxy-manager/src/ProxyManager/Generator/Util/IdentifierSuffixer.php:50
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fairly sure that's my own fault inside ocramius/proxy-manager
then: can you report an issue there, please?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Note: this was @internal
before, so I shouldn't have relied on it in first place.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh I see make sense then that it need to be changed at the proxy-manager side.
This massively simplifies the whole design, as it allows us to get rid of most of the complexity
of the package. Sadly, due to the API of
Versions::ROOT_PACKAGE_NAME
, we still need to generatecode during installation, and the composer plugin needs to be maintained long-term, but overall
we can deprecate its usage, and endorse moving to
composer/composer:^2.0.0
.