Composer installation problem

Created on 24 January 2022, almost 3 years ago
Updated 8 March 2023, over 1 year ago

Hello all,

Problem/Motivation

Since this morning I can't install a new drupal site cause of drupal/coder version in composer

Your requirements could not be resolved to an installable set of packages.
Problem 1
- Root composer.json requires drupal/coder == 8.3.13.0, found drupal/coder[8.3.13] in the lock file but not in remote repositories, make sure you avoid updating this package to keep the one from the lock file.

Same problem with composer update command :

Problem 1
- Root composer.json requires drupal/coder ^8.3, found drupal/coder[8.3.13] in the lock file but not in remote repositories, make sure you avoid updating this package to keep the one from the lock file.

composer.json :
"require-dev": {
        "drupal/coder": "^8.3"
}
composer.lock :
{
            "name": "drupal/coder",
            "version": "8.3.13",
            "source": {
                "type": "git",
                "url": "https://git.drupalcode.org/project/coder.git",
                "reference": "d3286d571b19633cc296d438c36b9aed195de43c"
            },
            "require": {
                "ext-mbstring": "*",
                "php": ">=7.0.8",
                "sirbrillig/phpcs-variable-analysis": "^2.10",
                "squizlabs/php_codesniffer": "^3.5.6",
                "symfony/yaml": ">=2.0.5"
            },
            "require-dev": {
                "phpstan/phpstan": "^0.12.63",
                "phpunit/phpunit": "^6.0 || ^7.0"
            },
            "type": "phpcodesniffer-standard",
            "autoload": {
                "psr-4": {
                    "Drupal\\": "coder_sniffer/Drupal/",
                    "DrupalPractice\\": "coder_sniffer/DrupalPractice/"
                }
            },
            "license": [
                "GPL-2.0-or-later"
            ],
            "description": "Coder is a library to review Drupal code.",
            "homepage": "https://www.drupal.org/project/coder",
            "keywords": [
                "code review",
                "phpcs",
                "standards"
            ],
            "time": "2021-02-06T10:44:32+00:00"
  }
πŸ’¬ Support request
Status

Fixed

Version

8.3

Component

Code

Created by

πŸ‡«πŸ‡·France JΓ©rΓ΄me Dehorter Lille

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • Hey there,

    I'm currently experiencing this issue while attempting to install with composer 2 via an internal mirror of packagist (hosted on JFrog artifactory).

    In my case at least, the problem is that the "dist" property is set to "__unset" in the coder.json file at https://repo.packagist.org/p2/drupal/coder.json. When JFrog tries to read that property it crashes, and exposes the problem to composer as a 404. This results in the error that composer could not find a valid version.

    I'm not actually sure what dist is supposed to be set to, so this could purely be a JFrog issue. But if there is some easy fix to setup dist on packagist that would be great :D.

  • Status changed to Fixed over 1 year ago
  • πŸ‡¦πŸ‡ΉAustria klausi πŸ‡¦πŸ‡Ή Vienna

    We switched the git repository on packagist to github now, so there is a "dist" property again. Please try again and let us know if you still have problems!

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

Production build 0.71.5 2024