Composer can't find the release

Created on 11 January 2024, 6 months ago
Updated 18 January 2024, 5 months ago

I'm upgrading a D9 site to D10, I tried everything possible and imaginable to get composer to find " viewsreference:^2.0@beta " to no avail.

Ended up installing the dev release instead.

🐛 Bug report
Status

Closed: cannot reproduce

Component

Miscellaneous

Created by

🇹🇭Thailand manarak

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @manarak
  • 🇮🇳India samir_shukla bareilly

    Hi, I was able to install the version 2.0@beta without any issues via composer. Can you try updating your composer and then again install as there sometimes can be version constraints.

  • 🇹🇭Thailand manarak
    >composer require drupal/viewsreference:2.0@beta
    ./composer.json has been updated
    Running composer update drupal/viewsreference
    Gathering patches for root package.
    Loading composer repositories with package information
    Updating dependencies
    Your requirements could not be resolved to an installable set of packages.
    
      Problem 1
        - Root composer.json requires drupal/viewsreference 2.0@beta (exact version match), found drupal/viewsreference[dev-1.x, dev-2.x, 1.0.0-alpha1, ..., 1.x-dev (alias of dev-1.x), 2.0.0-alpha1, ..., 2.x-dev (alias of dev-2.x)] but it does not match the constraint.
    
    Installation failed, reverting ./composer.json and ./composer.lock to their original content.

    after about 15 tries, I found out that the correct name is " 2.0.0-beta1 "

  • Status changed to Closed: cannot reproduce 5 months ago
  • You forgot the ^ character. It's trying to install an exact version otherwise, one that doesn't exist. The correct command can be found on the project page, you just need to copy it.

    composer require 'drupal/viewsreference:^2.0@beta'

  • 🇹🇭Thailand manarak

    I tried both variants.

Production build 0.69.0 2024