How to install the recipe (version 3)

Created on 17 July 2024, 5 months ago

Problem/Motivation

On a fresh Drupal 10.3.1 site, I tried with ddev composer require 'drupal/quick_links:^3.0@beta' but I got back

Your requirements could not be resolved to an installable set of packages.

- drupal/quick_links[3.0.0-beta1, ..., 3.0.0-beta2] require drupal/core ~8.0 -> found drupal/core[8.0.0-beta6, ..., 8.9.x-dev] but the package is fixed to 10.3.1 (lock file version) by a partial update and that version does not match. Make sure you list it as an argument for the update command.

The reference to core ~8.0 seems weird..

💬 Support request
Status

Active

Version

3.0

Component

Documentation

Created by

🇮🇹Italy kopeboy Milan

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

Comments & Activities

  • Issue created by @kopeboy
  • 🇮🇹Italy kopeboy Milan

    Oh my bad, I didn't see the README (cause I went to the 2.x version of the source code).

    From there you are sent to the Getting Started Guide (for recipes), where you can find a set of commands (that you can apply with DDEV just by pre-prending ddev to every command) that should make it... but doesn't.

    The suggested core patch is for Drupal 10.2 and won't apply. Doing all the other steps without applying the patch is not enough (same error after composer requiring this module).

    Version 10.3.x or 11.x of the linked Guide doesn't exist (the general docs folder either).

  • 🇨🇦Canada mandclu

    Hmmm, the only thing I can think of is that since recipes don't include an info.yml file, maybe if the composer.json file doesn't specifically reference a version of core, the packagist integration for drupal.org assumes the minimum value. I can explicitly set a minimum of Drupal 10.3, but I can't say for sure that will solve the issue.

  • 🇮🇹Italy kopeboy Milan

    Actually my bad again, I didn't read through the whole linked guide 😅
    a 10.3.x patch is also linked, but it returns an empty 200 and so it cannot apply 😅
    so I can't still composer require 'drupal/quick_links:^3.0@beta' and proceed with applying the recipe..

  • 🇮🇳India abhinesh

    Drupal.org appends metadata to the code associated with the module page, specifically incorporating "drupal/core ~8.0" automatically. I encountered a similar challenge with one of my recipes. The resolution that proved effective was altering the project type from "module" to "general projects."

    https://www.drupal.org/project/infrastructure/issues/3483086 💬 Request to Change Project Type Active

  • 🇮🇹Italy kopeboy Milan

    A standard composer require won't work even with those linked projects.. Seeing from their README there are many steps to do 😅 And if they are correct, maybe they should be added to this module's README?

  • 🇨🇦Canada mandclu

    I've had some discussion with the drupal.org infrastructure team, but it doesn't sound like the ability have recipes install properly via composer in a module project can be expected to work anytime soon.

    There are a couple of paths forward. For now, you could install the module. In fact, if your site is using Olivero as its front-end theme you could pull in the module and only install the quick_links_olivero submodule (agreeing to the dependencies) and that will set everything up for you, including placing the block onto the home page of your site.

    Since this module isn't being shown as in use, I can also inquire about having the project type switched from module to general project, after which the composer install should work for the recipe (but not for the module anymore).

Production build 0.71.5 2024