While simplytest.me works fine when there is a stable version of Drupal core selected, it doesn't work if you use a dev version, e.g. 9.1.x. The error is:

5f0f7606ec0cf6032a57e764# /bin/sh -c composer -n create-project drupal/recommended-project:^9.1 stm --no-install

Creating a "drupal/recommended-project:^9.1" project at "./stm"

[InvalidArgumentException] Could not find package drupal/recommended-project with version ^9.1. create-project [-s|--stability STABILITY] [--prefer-source] [--prefer-dist] [--repository REPOSITORY] [--repository-url REPOSITORY-URL] [--add-repository] [--dev] [--no-dev] [--no-custom-installers] [--no-scripts] [--no-progress] [--no-secure-http] [--keep-vcs] [--remove-vcs] [--no-install] [--ignore-platform-reqs] [--] [] [] []

Command Failed (Tugboat Error 1064): Exit code (1)

This can be fixed for dev versions if the version is changed to include -dev, e.g.

composer -n create-project drupal/recommended-project:^9.1-dev stm --no-install

so the logic needs to be updated to handle this.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Kristen Pol created an issue. See original summary.

Kristen Pol’s picture

For Drupal 9, this might be fixed with updating modules/simplytest_tugboat/templates/tugboat_config_9_yml.tpl.php so:

  $used_version = substr($used_version, 0, -2);

is changed to:

  $used_version = substr($used_version, 0, -2) . '-dev';
Kristen Pol’s picture

Here's a patch.

Kristen Pol’s picture

Assigned: Kristen Pol » Unassigned
Status: Active » Needs review
Issue tags: +Global2020
nerdstein’s picture

Status: Needs review » Closed (won't fix)

@kristen I think this is in the wrong project :(

I'm going to close this.

Kristen Pol’s picture

Project: SimpleTest » simplytest.me
Status: Closed (won't fix) » Needs review

Fixing project. :)

Kristen Pol’s picture

Version: 8.x-3.x-dev » 7.x-1.x-dev
nerdstein’s picture

Patch looks great -- uploading to bergste.in right now for manual testing

Kristen Pol’s picture

Status: Needs review » Reviewed & tested by the community

I tested this on bergste.in for versions 8.9.x, 9.0.x, 9.1.x, 8.9.2, and 9.0.2 and they all installed properly.

Kristen Pol’s picture

Title: Update drupal/recommended-project version logic to handle dev versions » Update drupal/recommended-project version logic to handle 9.1.x dev versions

  • nerdstein committed c6b2fa2 on 7.x-1.x authored by Kristen Pol
    Issue #3159427 by Kristen Pol, nerdstein: Update drupal/recommended-...
nerdstein’s picture

Status: Reviewed & tested by the community » Fixed

Pushed, deployed

Kristen Pol’s picture

Works great! Tried 9.1.x with and without a patch. Thanks!

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.