satis icon indicating copy to clipboard operation
satis copied to clipboard

"--skip-errors" Not Working

Open minr opened this issue 6 years ago • 9 comments

--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 avatar Oct 29 '19 06:10 minr

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
	}
}

minr avatar Oct 29 '19 06:10 minr

What version of satis?

alcohol avatar Oct 29 '19 07:10 alcohol

What version of satis?

./bin/satis -v
Satis 2.0.0-dev

minr avatar Oct 29 '19 09:10 minr

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

alcohol avatar Oct 29 '19 09:10 alcohol

git rev-parse HEAD

git rev-parse HEAD
6e50c07f0fedbe05b4881add6c641863ede87f72

minr avatar Oct 29 '19 10:10 minr

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.

alcohol avatar Oct 29 '19 10:10 alcohol

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
	}

minr avatar Oct 30 '19 01:10 minr

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

alcohol avatar Oct 30 '19 08:10 alcohol

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:

  • tar-based phar "/tmp/composer_archive5f851e9fee527.tar" cannot be created, filename "packages/babel-parser/test/fixtures/experimental/pipeline-operator/proposal-smart-error,-topic-style,-unbound-topic,-do-expression,-for-await-of-loop,-outer-topic-reference-in-loop-body/input.js" is too long for tar file format

  • tar-based phar "/tmp/composer_archive5f841b2b5a295.tar" cannot be created, filename "test/fixtures/files/170-byte-filename-cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc" is too long for tar file format

  • The process "git clone --no-checkout 'https://github.com/copy-app/php-client-library.git' '/tmp/composer_archive5f853fe8626cf' && cd '/tmp/composer_archive5f853fe8626cf' && git remote add composer 'https://github.com/copy-app/php-c lient-library.git' && git fetch composer && git remote set-url origin 'https://github.com/copy-app/php-client-library.git' && git remote set-url composer 'https://github.com/copy-app/php-client-library.git'" exceeded the timeout of 300 seconds.

  • [Composer\Downloader\TransportException (404)] The "https://registry.npmjs.org/big-integer/-/big-integer-1.1.6.tgz" file could not be downloaded (HTTP/1.1 404 Not Found)

  • The "https://api.github.com/repos/copy-app/php-client-library/zipball/bdc479726456561e78e4f072a8731d31879902f1" file could not be downloaded (HTTP/1.1 404 Not Found)

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

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

vercotux avatar Oct 13 '20 06:10 vercotux