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

Upgrade composer to v2 for PHP 8.x #25

Closed
w0rd-driven opened this issue Aug 23, 2022 · 0 comments · Fixed by #26
Closed

Upgrade composer to v2 for PHP 8.x #25

w0rd-driven opened this issue Aug 23, 2022 · 0 comments · Fixed by #26
Assignees

Comments

@w0rd-driven
Copy link
Owner

Due to doctrine/dbal throwing the error below, we need to upgrade to Composer 2.

[10.0MiB/0.00s] You are using Composer 1 which is deprecated. You should upgrade to Composer 2, see https://blog.packagist.com/deprecating-composer-1-support/
[11.6MiB/0.01s] Loading composer repositories with package information
[11.9MiB/0.01s] Installing dependencies (including require-dev) from lock file
[13.2MiB/0.03s] Your requirements could not be resolved to an installable set of packages.
[13.2MiB/0.03s] 
  Problem 1
    - Installation request for doctrine/dbal 3.4.2 -> satisfiable by doctrine/dbal[3.4.2].
    - doctrine/dbal 3.4.2 requires composer-runtime-api ^2 -> no matching package found.
Potential causes:
 - This package is not installable via Composer 1.x, see <https://blog.packagist.com/deprecating-composer-1-support/>
 - A typo in the package name
 - The package is not available in a stable-enough version according to your minimum-stability setting
   see <https://getcomposer.org/doc/04-schema.md#minimum-stability> for more details.
 - It's a private package and you forgot to add a custom repository to find it
Read <https://getcomposer.org/doc/articles/troubleshooting.md> for further common problems.
[12.1MiB/0.03s] Memory usage: 12.07MiB (peak: 13.42MiB), time: 0.03s

It's pretty trivial to locally live with both versions and switch back and forth but this will likely require upgrading Forge servers in preparation. I'm fine with this since it's a major version lock for us and I'm big on semver even when it doesn't always make sense.

@w0rd-driven w0rd-driven self-assigned this Aug 23, 2022
w0rd-driven added a commit that referenced this issue Aug 23, 2022
Remove "hirak/prestissimo" as parallel downloads possibly rolled into v2. It's really only supported for v1 either way.
Remove the `--1` flag. We could force v2 by using `--2` but that shouldn't be necessary for now. It probably will be in the future though with like PHP 10 or something.
@w0rd-driven w0rd-driven mentioned this issue Aug 23, 2022
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

Successfully merging a pull request may close this issue.

1 participant