0

I'm trying to follow the instructions from https://docs.pantheon.io/guides/drush/drush-import to import a Drupal 10 site to Pantheon. After running the terminus command, I'm getting this error:

[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: /home/atlas/pantheon-local-copies/decagon7_terminus_conversion_plugin

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


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

In VersionParser.php line 519:
                                                                    
  Could not parse version constraint ^: Invalid version string "^"  

Why is it trying to meet Drupal 8 dependencies?? And how do I fix the VersionParser error?

I've tried manually installing pantheon-systems/drupal-integrations, which didn't work. Google results about the VersionParser error seem to be about manual commands. I also tried updating it to 10 with composer (composer.json has it as 9.5 for some reason), which also didn't work

1
  • the "carret version range" is missing a version number, it should be ^8 ^9 or ^10 Commented Apr 24, 2024 at 7:46

2 Answers 2

1

In the composer.json file, is there a module where the version is not numbered or just "ˆ"?

If this is the case, you need to fix the version of this module or library before pushing it to Pantheon.

Sign up to request clarification or add additional context in comments.

Comments

0

Like Pipo mention, you need to add a version number after the carrot "^" to the repo reference in your composer require command: "'composer' 'require' 'pantheon-systems/drupal-integrations:^<add_version_here>' '--no-update'".

Here's the repor for themodule https://github.com/pantheon-systems/drupal-integrations where you can get the appropriate version (branch or tag).

Good luck.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.