fxpio / composer-asset-plugin

NPM/Bower Dependency Manager for Composer
MIT License
893 stars 156 forks source link

Cannot update random packages #301

Closed vpassapera closed 7 years ago

vpassapera commented 7 years ago

@francoispluchino Still seems to not be working, even with a github access token installed. I get:

03:32:13 TASK [geerlingguy.composer : Add GitHub OAuth token for Composer (if configured).] ***
03:32:14 ok: [<node>]
...
03:32:49 + /usr/local/bin/composer update --no-interaction --prefer-dist
03:32:49 Loading composer repositories with package information
3:32:49 Loading composer repositories with package information
03:32:50 
Reading composer.json of rskuipers/php-assumptions (0.1.0)

Reading composer.json of rskuipers/php-assumptions (0.2.0)

Reading composer.json of rskuipers/php-assumptions (0.3.0)

Reading composer.json of rskuipers/php-assumptions (0.4.0)

Reading composer.json of rskuipers/php-assumptions (0.5.0)

Reading composer.json of rskuipers/php-assumptions (feature/update-parser)

Reading composer.json of rskuipers/php-assumptions (master)

Updating dependencies (including require-dev)
03:33:19 Reading bower.json of bower-asset/jquery (3.2.1)

Reading bower.json of bower-asset/bootstrap (v3.3.7)

Reading bower.json of bower-asset/bootstrap (dev-master)
 
Reading bower.json of bower-asset/moment (2.18.1)

Reading bower.json of bower-asset/moment (dev-master)

03:33:19                                                                                                                                        
03:33:19   [Composer\Repository\InvalidRepositoryException]                                                                                     
03:33:19   No valid bower.json was found in any branch or tag of https://github.com/tobiasahlin/SpinKit.git, could not load a package from it.  

or

03:18:23   No valid bower.json was found in any branch or tag of https://github.com/mouse0270/bootstrap-notify.git, could not load a package from it.  

Locally, a different one fails: https://github.com/mrmrs/colors

Specifically:

[10:19:46] [vagrant@isengard] /vagrant [][feature/add-github-oauth ✓] →  composer update
Loading composer repositories with package information
Updating dependencies (including require-dev)
Failed to update git+ssh://git@github.com/mrmrs/colors.git, package information from this repository may be outdated
Package operations: 0 installs, 1 update, 0 removals
Package sebastian/git is abandoned, you should avoid using it. No replacement was suggested.
Generating autoload files
Generating  class alias map file
Inserting class alias loader into main autoload.php file
ocramius/package-versions:  Generating version class...
ocramius/package-versions: ...done generating version class
> Incenteev\ParameterHandler\ScriptHandler::buildParameters
Updating the "app/config/parameters.yml" file
> Sensio\Bundle\DistributionBundle\Composer\ScriptHandler::buildBootstrap
> Sensio\Bundle\DistributionBundle\Composer\ScriptHandler::clearCache

 // Clearing the cache for the dev environment with debug
 // true

 [OK] Cache for the "dev" environment (debug=true) was successfully cleared.

> Sensio\Bundle\DistributionBundle\Composer\ScriptHandler::installAssets

 Trying to install assets as relative symbolic links.

 --- --------------------------- ------------------
      Bundle                      Method / Error
 --- --------------------------- ------------------
  ✔   FOSJsRoutingBundle          relative symlink
  ✔   BmatznerFontAwesomeBundle   relative symlink
  ✔   MopaBootstrapBundle         relative symlink
  ✔   NelmioApiDocBundle          relative symlink
 --- --------------------------- ------------------

 [OK] All assets were successfully installed.

> Sensio\Bundle\DistributionBundle\Composer\ScriptHandler::installRequirementsFile
> Sensio\Bundle\DistributionBundle\Composer\ScriptHandler::prepareDeploymentTarget
> Tooly\ScriptHandler::installPharTools
Process tool "phpmd-extension" ...
File already exists in the given version.
Process tool "phpmetrics" ...
File already exists in the given version.
Process tool "chag" ...
File already exists in the given version.

Composer.json

{
    "name": "allegiant/isengard",
    "license": "proprietary",
    "type": "project",
    "description": "Devops as a service.",
    "minimum-stability": "dev",
    "prefer-stable": true,
    "autoload": {
        "psr-4": {
            "": "src/"
        },
        "classmap": [
            "app/AppKernel.php",
            "app/AppCache.php"
        ]
    },
    "autoload-dev": {
        "psr-4": {
            "Tests\\": "tests/"
        }
    },
    "require": {
        "php": "^7.1",
        "ext-redis": "*",
        "symfony/symfony": "3.2.*",
        "doctrine/orm": "^2.5",
        "doctrine/doctrine-bundle": "^1.6",
        "doctrine/doctrine-cache-bundle": "^1.2",
        "doctrine/doctrine-migrations-bundle": "^1.2",
        "stof/doctrine-extensions-bundle": "^1.2",
        "league/tactician-doctrine": "^1.0",
        "ramsey/uuid-doctrine": "^1.2",
        "symfony/swiftmailer-bundle": "^2.3",
        "symfony/monolog-bundle": "~3.1",
        "symfony/polyfill-apcu": "^1.0",
        "sensio/distribution-bundle": "^5.0",
        "sensio/framework-extra-bundle": "^3.0.2",
        "incenteev/composer-parameter-handler": "^2.0",
        "league/tactician-bundle": "^0.4",
        "friendsofsymfony/rest-bundle": "~2.2",
        "nelmio/api-doc-bundle": "^2.11",
        "jms/serializer-bundle": "^1.1",
        "jms/di-extra-bundle": "^1.8",
        "guzzlehttp/guzzle": "6.2.2",
        "mopa/bootstrap-bundle": "~3.0",
        "symfony/assetic-bundle": "^2.8",
        "friendsofsymfony/jsrouting-bundle": "^1.6",
        "bmatzner/fontawesome-bundle": "~4.7",
        "tdn/php-types": "dev-develop as 3.0.0",
        "kzykhys/git": "v0.1.2",
        "cache/apcu-adapter": "~0.2",
        "cache/redis-adapter": "~0.4",
        "cache/cache-bundle": "~0.5",
        "cache/adapter-bundle": "~0.4",
        "cache/psr-6-doctrine-bridge": "^3.0",
        "kachkaev/assets-version-bundle": "~2.0",
        "e-moe/guzzle6-bundle": "~1.1",
        "composer/semver": "^1.4",
        "typo3/class-alias-loader": "dev-master",
        "fxp/composer-asset-plugin": "dev-master",
        "bower-asset/bootstrap": "~3.3.0",
        "bower-asset/jquery": "~3.2",
        "bower-asset/jqueryui": "~1.12",
        "bower-asset/moment": "~2.18",
        "bower-asset/moment-timezone": "~0.5",
        "bower-asset/datatables": "~1.10",
        "bower-asset/remarkable-bootstrap-notify": "~3.1",
        "bower-asset/animate.css": "~3.1",
        "bower-asset/hint.css": "~2.5",
        "bower-asset/SpinKit": "~1.2",
        "bower-asset/bootstrap3-dialog": "~1.35",
        "bower-asset/async": "~2.4",
        "npm-asset/colors.css": "~3.0"
    },
    "require-dev": {
        "phploc/phploc": "^3.0",
        "sensio/generator-bundle": "^3.1",
        "dephpend/dephpend": "dev-develop",
        "henrikbjorn/lurker": "@stable",
        "doctrine/doctrine-fixtures-bundle": "^2.3",
        "symfony/phpunit-bridge": "dev-master",
        "friendsofphp/php-cs-fixer": "~2.0",
        "squizlabs/php_codesniffer": "~2.7",
        "phpunit/phpunit": "~6.1",
        "sebastian/phpcpd": "~3.0",
        "mockery/mockery": "~0.9",
        "liip/functional-test-bundle": "~1.7",
        "jakub-onderka/php-parallel-lint": "0.*",
         "phpmd/phpmd" : "@stable",
        "consolidation/robo": "~1.0",
        "seld/jsonlint": "~1.6",
        "kevinlebrun/colors.php": "0.*",
        "rskuipers/php-assumptions": "dev-master",
        "povils/phpmnd": "~1.0",
        "escapestudios/symfony2-coding-standard": "^2.10",
        "tm/tooly-composer-script": "^1.2"
    },
    "scripts": {
        "symfony-scripts": [
            "Incenteev\\ParameterHandler\\ScriptHandler::buildParameters",
            "Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::buildBootstrap",
            "Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::clearCache",
            "Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::installAssets",
            "Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::installRequirementsFile",
            "Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::prepareDeploymentTarget",
            "Tooly\\ScriptHandler::installPharTools"
        ],
        "post-install-cmd": [
            "@symfony-scripts"
        ],
        "post-update-cmd": [
            "@symfony-scripts"
        ]
    },
    "config": {
        "process-timeout": 10000,
        "preferred-install": "dist",
        "github-protocols": ["https"],
        "bin-dir": "bin",
        "platform": {
            "php": "7.1"
        },
        "fxp-asset": {
            "installer-paths": {
                "vcs-driver-options": {
                    "github-no-api": true
                },
                "asset-pattern-skip-version": "(-build|-patch)",
                "npm-asset-library": "web/vendor",
                "bower-asset-library": "web/vendor",
                "repositories": [
                    {
                        "type": "bower-vcs",
                        "url": "https://github.com/twbs/bootstrap.git"
                    },
                    {
                        "type": "bower-vcs",
                        "url": "https://github.com/jquery/jquery.git"
                    },
                    {
                        "type": "bower-vcs",
                        "url": "https://github.com/jquery/jquery-ui.git"
                    },
                    {
                        "type": "bower-vcs",
                        "url": "https://github.com/moment/moment.git"
                    },
                    {
                        "type": "bower-vcs",
                        "url": "https://github.com/moment/moment-timezone.git"
                    },
                    {
                        "type": "bower-vcs",
                        "url": "https://github.com/DataTables/DataTables.git"
                    },
                    {
                        "type": "bower-vcs",
                        "url": "https://github.com/mouse0270/bootstrap-notify.git"
                    },
                    {
                        "type": "bower-vcs",
                        "url": "https://github.com/daneden/animate.css.git"
                    },
                    {
                        "type": "bower-vcs",
                        "url": "https://github.com/chinchang/hint.css.git"
                    },
                    {
                        "type": "bower-vcs",
                        "url": "https://github.com/tobiasahlin/SpinKit.git"
                    },
                    {
                        "type": "bower-vcs",
                        "url": "https://github.com/nakupanda/bootstrap3-dialog.git"
                    },
                    {
                        "type": "bower-vcs",
                        "url": "https://github.com/caolan/async.git"
                    },
                    {
                        "type": "npm-vcs",
                        "url": "https://github.com/mrmrs/colors.git"
                    }
                ]
            }
        }
    },
    "extra": {
        "symfony-app-dir": "app",
        "symfony-bin-dir": "bin",
        "symfony-var-dir": "var",
        "symfony-web-dir": "web",
        "symfony-tests-dir": "tests",
        "symfony-assets-install": "relative",
        "incenteev-parameters": {
            "file": "app/config/parameters.yml"
        },
        "tools": {
            "phpmd-extension": {
                "url": "https://github.com/mi-schi/phpmd-extension/releases/download/stable/phpmd-extension.phar",
                "only-dev": true,
                "force-replace": true
            },
            "phpmetrics": {
                "url": "https://github.com/phpmetrics/PhpMetrics/releases/download/v2.2.0/phpmetrics.phar",
                "only-dev": true,
                "force-replace": true
            },
            "chag": {
                "url": "https://raw.githubusercontent.com/vpassapera/chag/master/chag",
                "only-dev": true,
                "force-replace": true
            }

        },
        "typo3/class-alias-loader": {
            "class-alias-maps": [
                "src/AppBundle/AliasMap.php"
            ],
            "always-add-alias-loader": true
        }
    }
}
vpassapera commented 7 years ago

I forced the https repos so that it wouldn't use a different protocol. But I've not succeeded in getting some of those repos to work, removing them does not help.

Composer is latest version, so is this plugin. PHP as well (7.1.x)

Swithing to asset-packagist and composer-installers-extender seems to have fixed all problems, it also is way faster.