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

Compatibility Issue with robloach/component-installer and Composer 2.x #2029

Open
aarek-eng opened this issue Feb 29, 2024 · 1 comment
Open

Comments

@aarek-eng
Copy link

Description:

Hello handlebars.js maintainers,

I've encountered a compatibility issue when integrating handlebars.js into a Nextcloud app project, specifically related to the package's dependency on robloach/component-installer. This dependency appears to cause conflicts with Composer 2.x, leading to installation and update issues in environments that have migrated to Composer's latest version.

Issue Overview:

  • Project Context: Self-hosted Nextcloud server application development.
  • Environment: Fedora OS, PHP 8.2.16, Composer 2.7.1
  • Dependency Conflict: robloach/component-installer is required by handlebars.js, which is flagged as abandoned and incompatible with Composer 2.x. Composer suggests using oomphinc/composer-installers-extender instead.
  • Error Message: "Package robloach/component-installer is abandoned, you should avoid using it. Use oomphinc/composer-installers-extender instead."

Impact:

The reliance on an abandoned installer package causes deprecation warnings and complicates the installation process in modern PHP environments, potentially affecting a wide range of projects that include handlebars.js as a dependency.

Encountered Issues:

  1. Composer Update Messages:

    • Composer indicates that robloach/component-installer is abandoned and recommends using oomphinc/composer-installers-extender.
    • During updates and installations, Composer prompts to trust and execute code from robloach/component-installer, highlighting compatibility concerns with Composer 2.x.
  2. Dependency Resolution Failure:

    • Attempts to switch to oomphinc/composer-installers-extender and update dependencies result in conflicts due to the hard dependency on robloach/component-installer.
@jaylinski
Copy link
Member

I actually removed this dependency some time ago: components/handlebars.js@641078e

I think the change didn't make it to v4.7.8 though. You can work around this issue by installing the dev-master-release for now:

composer require components/handlebars.js:dev-master

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

No branches or pull requests

2 participants