composer-check.php 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. #!/usr/bin/env php
  2. <?php
  3. namespace Fgm\ComposerCheck;
  4. /**
  5. * Guess the path where the Composer autoloader is available.
  6. *
  7. * TODO find a better logic.
  8. *
  9. * @return string
  10. * The path to the
  11. */
  12. function setupAutoload($debug = FALSE) {
  13. $runningFrom = [
  14. // Straight git clone, then composer install.
  15. "git clone" => __DIR__ . '/../vendor',
  16. // Composer install as drush plugin with default config/bin.
  17. "composer default" => __DIR__ . '/../../../../vendor',
  18. ];
  19. foreach ($runningFrom as $kind => $location) {
  20. $path = "${location}/autoload.php";
  21. if (is_file($path) && is_readable($path)) {
  22. $autoloader = include_once $path;
  23. if ($autoloader instanceof \Composer\Autoload\ClassLoader) {
  24. if ($debug) {
  25. echo "Install appears to be: $kind\n";
  26. }
  27. break;
  28. }
  29. }
  30. }
  31. return realpath(dirname($location));
  32. }
  33. // TODO use options.
  34. $all = FALSE;
  35. $debug = TRUE;
  36. $useYaml = TRUE;
  37. $path = setupAutoload($debug);
  38. if (empty($path)) {
  39. die("Autoloader not found.");
  40. }
  41. $factory = new LoaderFactory($path, $all);
  42. $requirementsLoader = $factory->createLoader('requirements');
  43. $requirementsLoader->load();
  44. $lockLoader = $factory->createLoader('lock');
  45. $lockLoader->load();
  46. $merger = new MergeBox($requirementsLoader, $lockLoader, $all);
  47. $merger->merge();
  48. $reporter = $useYaml ? new YamlReporter() : new JsonReporter();
  49. echo $reporter->report($merger);
PANIC: session(release): write data/sessions/4/7/47ca012c9f59c14c: no space left on device

PANIC

session(release): write data/sessions/4/7/47ca012c9f59c14c: no space left on device
/my/cache/.heroku/go/go-path/pkg/mod/github.com/go-macaron/session@v1.0.3/session.go:204 (0xb13e07)
/my/cache/.heroku/go/go-path/pkg/mod/gopkg.in/macaron.v1@v1.5.1/context.go:80 (0x967b75)
/my/cache/.heroku/go/go-path/pkg/mod/github.com/go-macaron/inject@v0.0.0-20200308113650-138e5925c53b/inject.go:157 (0x9512ee)
/my/cache/.heroku/go/go-path/pkg/mod/github.com/go-macaron/inject@v0.0.0-20200308113650-138e5925c53b/inject.go:135 (0x951205)
/my/cache/.heroku/go/go-path/pkg/mod/gopkg.in/macaron.v1@v1.5.1/context.go:124 (0x967cc4)
/my/cache/.heroku/go/go-path/pkg/mod/gopkg.in/macaron.v1@v1.5.1/context.go:114 (0x967bf6)
/my/cache/.heroku/go/go-path/pkg/mod/gopkg.in/macaron.v1@v1.5.1/recovery.go:161 (0x15baec4)
/my/cache/.heroku/go/go-path/pkg/mod/gopkg.in/macaron.v1@v1.5.1/logger.go:40 (0x96b257)
/my/cache/.heroku/go/go-path/pkg/mod/github.com/go-macaron/inject@v0.0.0-20200308113650-138e5925c53b/inject.go:157 (0x9512ee)
/my/cache/.heroku/go/go-path/pkg/mod/github.com/go-macaron/inject@v0.0.0-20200308113650-138e5925c53b/inject.go:135 (0x951205)
/my/cache/.heroku/go/go-path/pkg/mod/gopkg.in/macaron.v1@v1.5.1/context.go:124 (0x967cc4)
/my/cache/.heroku/go/go-path/pkg/mod/gopkg.in/macaron.v1@v1.5.1/router.go:187 (0x972959)
/my/cache/.heroku/go/go-path/pkg/mod/gopkg.in/macaron.v1@v1.5.1/router.go:304 (0x973a01)
/my/cache/.heroku/go/go-path/pkg/mod/gopkg.in/macaron.v1@v1.5.1/macaron.go:218 (0x96c572)
/my/cache/.heroku/go/go1.26.3/go/src/net/http/server.go:3311 (0x85a5cd)
/my/cache/.heroku/go/go1.26.3/go/src/net/http/server.go:2073 (0x837f6f)
/my/cache/.heroku/go/go1.26.3/go/src/runtime/asm_amd64.s:1771 (0x493380)