Skip to content

404 for magento/composer when issuing composer install on the GA release from 2 days ago #2416

Closed
@ghost

Description

When issuing "composer -vvv install --prefer-source --no-interaction" on tags/2.0.0 I receive a 404 when attempting to download magento/composer. Using tags/2.0.0-rc2 the install works as expected.

[user@host magento2]$ git clone -b master --depth 1 https://github.com/magento/magento2.git .
[user@host magento2]$ composer -vvv install --prefer-source --no-interaction
...
  - Installing composer/composer (1.0.0-alpha10)
    Cloning 775f6cd5c633facf2e7b99611fdcaa900b58ddb7
Executing command (CWD): git clone --no-checkout 'git://github.com/composer/composer.git' '/var/www/magento2/vendor/composer/composer' && cd '/var/www/magento2/vendor/composer/composer' && git remote add composer 'git://github.com/composer/composer.git' && git fetch composer
Executing command (/var/www/magento2/vendor/composer/composer): git remote set-url --push origin 'git@github.com:composer/composer.git'
Executing command (/var/www/magento2/vendor/composer/composer): git branch -r
Executing command (/var/www/magento2/vendor/composer/composer): git checkout '1.0.0-alpha10' --
Executing command (/var/www/magento2/vendor/composer/composer): git reset --hard '775f6cd5c633facf2e7b99611fdcaa900b58ddb7' --

    REASON: Required by root: Install command rule (install composer/composer 1.0.0-alpha10)

  - Installing magento/composer (1.0.2)
Downloading https://repo.magento.com/archives/magento/composer/magento-composer-1.0.2.0.zip
    Downloading: Connecting...
Failed: [Composer\Downloader\TransportException] 404: The "https://repo.magento.com/archives/magento/composer/magento-composer-1.0.2.0.zip" file could not be downloaded (HTTP/1.1 404 Not Found)



  [Composer\Downloader\TransportException]
  The "https://repo.magento.com/archives/magento/composer/magento-composer-1.0.2.0.zip" file could not be downloa
  ded (HTTP/1.1 404 Not Found)



Exception trace:
 () at phar:///usr/local/bin/composer/src/Composer/Util/RemoteFilesystem.php:211
 Composer\Util\RemoteFilesystem->get() at phar:///usr/local/bin/composer/src/Composer/Util/RemoteFilesystem.php:69
 Composer\Util\RemoteFilesystem->copy() at phar:///usr/local/bin/composer/src/Composer/Downloader/FileDownloader.php:136
 Composer\Downloader\FileDownloader->doDownload() at phar:///usr/local/bin/composer/src/Composer/Downloader/FileDownloader.php:88
 Composer\Downloader\FileDownloader->download() at phar:///usr/local/bin/composer/src/Composer/Downloader/ArchiveDownloader.php:35
 Composer\Downloader\ArchiveDownloader->download() at phar:///usr/local/bin/composer/src/Composer/Downloader/DownloadManager.php:199
 Composer\Downloader\DownloadManager->download() at phar:///usr/local/bin/composer/src/Composer/Installer/LibraryInstaller.php:159
 Composer\Installer\LibraryInstaller->installCode() at phar:///usr/local/bin/composer/src/Composer/Installer/LibraryInstaller.php:90
 Composer\Installer\LibraryInstaller->install() at phar:///usr/local/bin/composer/src/Composer/Installer/InstallationManager.php:152
 Composer\Installer\InstallationManager->install() at phar:///usr/local/bin/composer/src/Composer/Installer/InstallationManager.php:139
 Composer\Installer\InstallationManager->execute() at phar:///usr/local/bin/composer/src/Composer/Installer.php:603
 Composer\Installer->doInstall() at phar:///usr/local/bin/composer/src/Composer/Installer.php:232
 Composer\Installer->run() at phar:///usr/local/bin/composer/src/Composer/Command/InstallCommand.php:134
 Composer\Command\InstallCommand->execute() at phar:///usr/local/bin/composer/vendor/symfony/console/Command/Command.php:256
 Symfony\Component\Console\Command\Command->run() at phar:///usr/local/bin/composer/vendor/symfony/console/Application.php:838
 Symfony\Component\Console\Application->doRunCommand() at phar:///usr/local/bin/composer/vendor/symfony/console/Application.php:189
 Symfony\Component\Console\Application->doRun() at phar:///usr/local/bin/composer/src/Composer/Console/Application.php:163
 Composer\Console\Application->doRun() at phar:///usr/local/bin/composer/vendor/symfony/console/Application.php:120
 Symfony\Component\Console\Application->run() at phar:///usr/local/bin/composer/src/Composer/Console/Application.php:98
 Composer\Console\Application->run() at phar:///usr/local/bin/composer/bin/composer:43
 require() at /usr/local/bin/composer:25

However checking out the rc2 tag allows the successful install of magento/composer

[user@host magento2]$ git checkout tags/2.0.0-rc2
Note: checking out 'tags/2.0.0-rc2'.

You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by performing another checkout.

If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -b with the checkout command again. Example:

  git checkout -b new_branch_name

HEAD is now at 2335247... Magento 2.0.0-rc2 publication
[user@host magento2]$ composer -vvv install --prefer-source --no-interaction
...
  - Installing composer/composer (1.0.0-alpha10)
    Cloning 775f6cd5c633facf2e7b99611fdcaa900b58ddb7
Executing command (CWD): git clone --no-checkout 'git://github.com/composer/composer.git' '/var/www/magento2/vendor/composer/composer' && cd '/var/www/magento2/vendor/composer/composer' && git remote add composer 'git://github.com/composer/composer.git' && git fetch composer
Executing command (/var/www/magento2/vendor/composer/composer): git remote set-url --push origin 'git@github.com:composer/composer.git'
Executing command (/var/www/magento2/vendor/composer/composer): git branch -r
Executing command (/var/www/magento2/vendor/composer/composer): git checkout '1.0.0-alpha10' --
Executing command (/var/www/magento2/vendor/composer/composer): git reset --hard '775f6cd5c633facf2e7b99611fdcaa900b58ddb7' --

    REASON: Required by root: Install command rule (install composer/composer 1.0.0-alpha10)

  - Installing magento/composer (1.0.2)
Downloading https://packages.magento.com/_packages/composer-1.0.2.zip
    Downloading: 100%
Writing /root/.composer/cache/files/magento/composer/1.0.2.0-.zip into cache from /var/www/magento2/vendor/magento/composer/7aa0f235fe569c0644855d5a8c38d687.zip
    Extracting archive
Executing command (CWD): unzip '/var/www/magento2/vendor/magento/composer/7aa0f235fe569c0644855d5a8c38d687.zip' -d '/var/www/magento2/vendor/composer/0177c852' && chmod -R u+w '/var/www/magento2/vendor/composer/0177c852'

    REASON: Required by root: Install command rule (install magento/composer 1.0.2)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions