composer / satis

Simple static Composer repository generator - For a full private Composer repo use Private Packagist
MIT License
3.14k stars 519 forks source link

"--skip-errors" Not Working #571

Open minr opened 5 years ago

minr commented 5 years ago

--skip-errors NOT WORKING

My Commend:

php -d memory_limit=-1 bin/satis build satis.json web/ -v  --skip-errors 

Error Logs:


In RemoteFilesystem.php line 440:

  [Composer\Downloader\TransportException (404)]
  The "https://mirrors.aliyun.com/composer/p/web-ant/webant-corebundle%24f65f
  c56b2a887dfa8ae7c8550b26163f91d367ac5d63e5e9468b31c3bdccdcc3.json" file cou
  ld not be downloaded (HTTP/1.1 404 Not Found)

Exception trace:
  at /home/work/Kalista/vendor/composer/composer/src/Composer/Util/RemoteFilesystem.php:440
 Composer\Util\RemoteFilesystem->get() at /home/work/Kalista/vendor/composer/composer/src/Composer/Util/RemoteFilesystem.php:104
 Composer\Util\RemoteFilesystem->getContents() at /home/work/Kalista/vendor/composer/composer/src/Composer/Repository/ComposerRepository.php:687
 Composer\Repository\ComposerRepository->fetchFile() at /home/work/Kalista/vendor/composer/composer/src/Composer/Repository/ComposerRepository.php:358
 Composer\Repository\ComposerRepository->whatProvides() at /home/work/Kalista/vendor/composer/composer/src/Composer/DependencyResolver/Pool.php:204
 Composer\DependencyResolver\Pool->computeWhatProvides() at /home/work/Kalista/vendor/composer/composer/src/Composer/DependencyResolver/Pool.php:193
 Composer\DependencyResolver\Pool->whatProvides() at /home/work/Kalista/src/PackageSelection/PackageSelection.php:632
 Composer\Satis\PackageSelection\PackageSelection->selectLinks() at /home/work/Kalista/src/PackageSelection/PackageSelection.php:169
 Composer\Satis\PackageSelection\PackageSelection->select() at /home/work/Kalista/src/Console/Command/BuildCommand.php:183
 Composer\Satis\Console\Command\BuildCommand->execute() at /home/work/Kalista/vendor/symfony/console/Command/Command.php:255
 Symfony\Component\Console\Command\Command->run() at /home/work/Kalista/vendor/symfony/console/Application.php:934
 Symfony\Component\Console\Application->doRunCommand() at /home/work/Kalista/vendor/symfony/console/Application.php:273
 Symfony\Component\Console\Application->doRun() at /home/work/Kalista/src/Console/Application.php:49
 Composer\Satis\Console\Application->doRun() at /home/work/Kalista/vendor/symfony/console/Application.php:149
 Symfony\Component\Console\Application->run() at /home/work/Kalista/bin/satis:26
minr commented 5 years ago

satis.json:

{
    "name": "Kalista",
    "description": "Kalista(BlueCity) Composer Repository",
    "homepage": "http://10.10.63.32/",
    "include-filename": "all.json",
    "repositories": [
        {
            "type": "composer",
            "url": "https://mirrors.aliyun.com/composer/"
        }
    ],
    "require-dependencies": true,
    "require-dev-dependencies": true,
    "require-all": true,
    "config":{
        "secure-http":false
    },
    "abandoned": {
        "acosf/archersys": true
    }
}
alcohol commented 5 years ago

What version of satis?

minr commented 5 years ago

What version of satis?

./bin/satis -v
Satis 2.0.0-dev
alcohol commented 5 years ago

I assume you're running from source, so git rev-parse HEAD.

minr commented 5 years ago

git rev-parse HEAD

git rev-parse HEAD
6e50c07f0fedbe05b4881add6c641863ede87f72
alcohol commented 5 years ago

Hmm. It seems the "problem" here is that --skip-errors is only for downloading and archiving of packages. The error you are running into is in regards to retrieving source metadata information, which is not part of downloading or archiving, but rather essential for determining which packages to gather.

minr commented 5 years ago

Hmm. It seems the "problem" here is that --skip-errors is only for downloading and archiving of packages. The error you are running into is in regards to retrieving source metadata information, which is not part of downloading or archiving, but rather essential for determining which packages to gather.

So HOW TO FIX IT..

I setted abandoned still not working....

"abandoned": {
        "acosf/archersys": true
    }
alcohol commented 5 years ago

You should fix the custom Composer repository. It contains references to files that do not exist in the metadata.

vercotux commented 4 years ago

I am having a very similar issue. Despite --skip-errors the build terminates while satis is downloading resolved dependencies which I have no control over.

Here are some examples:

All of the above terminate the build despite using --skip-errors.

I am using the latest master commit ( #e89d68ac83892ef6fb1409dbab065a777e1506de ).