drupal-composer / drupal-packagist

:package: Drupal Packagist server to automatically build package information from projects on drupal.org
http://packagist.drupal-composer.org
28 stars 4 forks source link

Wrong dist-url for latest drupal/crop package #64

Closed hctom closed 7 years ago

hctom commented 8 years ago

When trying to add drupal/cropwith 8.* via packagist.drupal-composer.org, it results in the following composer.lockentry:

        {
            "name": "drupal/crop",
            "version": "8.1.0",
            "source": {
                "type": "git",
                "url": "https://git.drupal.org/project/crop.git",
                "reference": "8506e099c9f7cd889db4e982890011df2b956bca"
            },
            "dist": {
                "type": "zip",
                "url": "https://ftp.drupal.org/files/projects/crop-8.x-1.0-rc1.zip",
                "reference": null,
                "shasum": null
            },
            "require": {
                "drupal/core": "8.*",
                "drupal/image": "8.*",
                "drupal/user": "8.*"
            },
            "replace": {
                "drupal/crop_media_entity": "self.version"
            },
            "suggest": {
                "drupal/core": "Required by drupal/crop_media_entity",
                "drupal/media_entity": "Required by drupal/crop_media_entity"
            },
            "type": "drupal-module",
            "extra": {
                "branch-alias": {
                    "dev-8.x-1.x": "8.1.x-dev"
                }
            },
            "notification-url": "https://packagist.drupal-composer.org/downloads/",
            "license": [
                "GPL-2.0+"
            ],
            "description": "Provides storage and API for image crops.",
            "homepage": "https://www.drupal.org/project/crop",
            "time": "2016-05-18 15:47:02"
        }

There is a difference between the installed version (8.1.0) and its dist package used (8.x-1.0-rc1).

Is this a bug on the packagist side or is this a tagging problem with that project?

Here is a simple demo composer.json to reproduce this behavior:

{
    "name": "project/name",
    "type": "project",
    "repositories": [
        {
            "type": "composer",
            "url": "https://packagist.drupal-composer.org"
        }
    ],
    "require": {
        "drupal/crop": "8.*"
    },
    "minimum-stability": "dev",
    "prefer-stable": true
}
leymannx commented 7 years ago

composer require drupal/crop>8.1.0-rc1 installs RC1.

webflo commented 7 years ago

Drupal Packagist won't receive any bugfixes anymore.