pantheon-systems / pantheon-systems/terminus-conversion-tools-plugin

Release-to-dev fails when core constraint uses tilde (~)

Open
#71 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
PHP
Stars
4
Forks
4
PR merge metrics
No merged PRs in 30d

Description

The workaround is to change instances of ~10.3 to ^10.3.0.

Error:

<snip>
drupal/core-recommended (~10.3) is added
 [warning] Failed adding and/or installing Drupal 8 dependencies: Failed executing Composer command: The command "'composer' 'require' 'pantheon-systems/drupal-integrations:^' '--no-update'" failed.

Exit Code: 1(General error)

Working directory: /Users/andreangelantoni/Sites/pl-performant-labs-pantheon

Output:
================


Error Output:
================

In VersionParser.php line 521:

  Could not parse version constraint ^: Invalid version string "^"

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the release-to-dev flow with a dependency using the tilde constraint shown in the issue, then inspect where the Composer require command is assembled. Done means the constraint is preserved or normalized correctly so Composer no longer receives a bare ^ and the release completes successfully.

Written by the indexing model from the issue text.

Assessment

Tech stack
php
Domain
cli
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.