Skip to content
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

Merged
merged 9 commits into from Jul 11, 2020

Conversation

Ocramius
Copy link
Owner

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.

… 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`.
@Ocramius Ocramius added this to the 1.10.0 milestone Jul 11, 2020
@Ocramius Ocramius self-assigned this Jul 11, 2020
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.
…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.
*/
public const VERSIONS = %s;

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

Copy link
Owner Author

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?

Copy link
Owner Author

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.

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants