Sha256: 8e7a84006713c00bb92a53c996dae35fd9332100626908ec30296177c41c8a02

Contents?: true

Size: 966 Bytes

Versions: 42

Compression:

Stored size: 966 Bytes

Contents

#!/usr/bin/env php
<?php

$cwd = getcwd();
chdir(__DIR__.'/../');
$ts = rtrim(shell_exec('git log -n1 --pretty=%ct HEAD'));
if (!is_numeric($ts)) {
    echo 'Could not detect date using "git log -n1 --pretty=%ct HEAD"'.PHP_EOL;
    exit(1);
}
// Install with the current version to force it having the right ClassLoader version
// Install without dev packages to clean up the included classmap from phpunit classes
shell_exec('php bin/composer config autoloader-suffix ComposerPhar' . $ts);
shell_exec('php bin/composer install -q --no-dev');
shell_exec('php bin/composer config autoloader-suffix --unset');
chdir($cwd);

require __DIR__.'/../src/bootstrap.php';

use Composer\Compiler;

error_reporting(-1);
ini_set('display_errors', 1);

try {
    $compiler = new Compiler();
    $compiler->compile();
} catch (\Exception $e) {
    echo 'Failed to compile phar: ['.get_class($e).'] '.$e->getMessage().' at '.$e->getFile().':'.$e->getLine().PHP_EOL;
    exit(1);
}

Version data entries

42 entries across 42 versions & 1 rubygems

Version Path
dependabot-composer-0.119.0.beta1 helpers/vendor/composer/composer/bin/compile
dependabot-composer-0.113.19 helpers/vendor/composer/composer/bin/compile
dependabot-composer-0.112.1 helpers/vendor/composer/composer/bin/compile
dependabot-composer-0.111.57 helpers/vendor/composer/composer/bin/compile
dependabot-composer-0.111.56 helpers/vendor/composer/composer/bin/compile
dependabot-composer-0.111.52 helpers/vendor/composer/composer/bin/compile
dependabot-composer-0.111.50 helpers/vendor/composer/composer/bin/compile
dependabot-composer-0.111.25 helpers/vendor/composer/composer/bin/compile
dependabot-composer-0.111.17 helpers/vendor/composer/composer/bin/compile
dependabot-composer-0.111.15 helpers/vendor/composer/composer/bin/compile
dependabot-composer-0.110.13 helpers/vendor/composer/composer/bin/compile
dependabot-composer-0.108.11 helpers/vendor/composer/composer/bin/compile
dependabot-composer-0.108.8 helpers/vendor/composer/composer/bin/compile
dependabot-composer-0.107.47 helpers/vendor/composer/composer/bin/compile
dependabot-composer-0.107.39 helpers/vendor/composer/composer/bin/compile
dependabot-composer-0.107.36 helpers/vendor/composer/composer/bin/compile
dependabot-composer-0.107.28 helpers/vendor/composer/composer/bin/compile
dependabot-composer-0.107.14 helpers/vendor/composer/composer/bin/compile
dependabot-composer-0.106.12 helpers/vendor/composer/composer/bin/compile
dependabot-composer-0.106.11 helpers/vendor/composer/composer/bin/compile