Composer error: "Package drupal/cache_control_override's dist key should be specified as ... url: null given

Created on 21 September 2023, over 1 year ago
Updated 23 September 2023, about 1 year ago

Problem/Motivation

Composer spits out the following error:

Package drupal/cache_control_override's dist key should be specified as {"type": ..., "url": ..., "reference": ..., "shasum": ...},
{"type":"zip","url":null,"reference":"2.0.0","shasum":""} given.

This breaks composer…

πŸ› Bug report
Status

Fixed

Version

2.0

Component

Packaging

Created by

πŸ‡§πŸ‡ͺBelgium menteb

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

Comments & Activities

  • Issue created by @menteb
  • πŸ‡¦πŸ‡ΊAustralia dpi Perth, Australia

    What command are you executing to get this output?

    We might need to push this to https://www.drupal.org/project/infrastructure/ β†’ instead.

  • Status changed to Postponed: needs info over 1 year ago
  • πŸ‡¦πŸ‡ΊAustralia dpi Perth, Australia
  • πŸ‡§πŸ‡ͺBelgium menteb

    This is the complete copy/paste from command line:

    $ composer require 'drupal/cache_control_override:^2.0'
    
    ./composer.json has been updated
    Running composer update drupal/cache_control_override
    Loading composer repositories with package information
    Updating dependencies
    Lock file operations: 1 install, 0 updates, 0 removals
      - Locking drupal/cache_control_override (2.0.0)
    Writing lock file
    Installing dependencies from lock file (including require-dev)
    
    Installation failed, reverting ./composer.json and ./composer.lock to their original content.
    
    In ArrayLoader.php line 194:
                                                                                                                                           
      Package drupal/cache_control_override's dist key should be specified as {"type": ..., "url": ..., "reference": ..., "shasum": ...},  
      {"type":"zip","url":null,"reference":"2.0.0","shasum":""} given.                                                                     
                                                                                                                                           
    
    require [--dev] [--dry-run] [--prefer-source] [--prefer-dist] [--prefer-install PREFER-INSTALL] [--fixed] [--no-suggest] [--no-progress] [--no-update] [--no-install] [--no-audit] [--audit-format AUDIT-FORMAT] [--update-no-dev] [-w|--update-with-dependencies] [-W|--update-with-all-dependencies] [--with-dependencies] [--with-all-dependencies] [--ignore-platform-req IGNORE-PLATFORM-REQ] [--ignore-platform-reqs] [--prefer-stable] [--prefer-lowest] [--sort-packages] [-o|--optimize-autoloader] [-a|--classmap-authoritative] [--apcu-autoloader] [--apcu-autoloader-prefix APCU-AUTOLOADER-PREFIX] [--] [<packages>...]
    
  • πŸ‡¦πŸ‡ΊAustralia dpi Perth, Australia
  • πŸ‡¦πŸ‡ΊAustralia dpi Perth, Australia

    Based on some searching in Drupal Slack I'm going to push to the infrastructure queue and ping in Slack @ #drupal-infrastructure

  • Status changed to Active over 1 year ago
  • πŸ‡¦πŸ‡ΊAustralia dpi Perth, Australia
  • πŸ‡§πŸ‡ͺBelgium menteb

    Thanks for the quick action!

  • πŸ‡¦πŸ‡ΊAustralia dpi Perth, Australia

    I'm also seeing this error when I do a regular `composer update`

    The given package is missing url information

    Composer version 2.4.2 2022-09-14 16:11:15

  • πŸ‡§πŸ‡ͺBelgium menteb

    I’m running Composer version 2.5.5 2023-03-21 11:50:05

  • Assigned to drumm
  • Status changed to Fixed over 1 year ago
  • πŸ‡ΊπŸ‡ΈUnited States drumm NY, US

    This should be resolved now

  • πŸ‡¦πŸ‡ΊAustralia dpi Perth, Australia

    Thanks @drumm !

  • πŸ‡§πŸ‡ͺBelgium menteb

    Great! Thanks @drumm!

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

Production build 0.71.5 2024