Skip to content

Commit

Permalink
Stop using files with pseudomains
Browse files Browse the repository at this point in the history
hhvm-autoload generates several alternative files, which
functioned as migration aids from composer; migrate to one
of the newer ones, as the older ones are becoming
invalid/unusable as HHVM development continues.
  • Loading branch information
fredemmott committed Jul 15, 2020
1 parent 5492e84 commit ac9e813
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions bin/hh-codegen-verify-signatures.hack
Original file line number Diff line number Diff line change
Expand Up @@ -84,12 +84,12 @@ final class CLIVerifier {
function verify_signatures_main(): noreturn {
$dir = __DIR__;
while (true) {
if (\file_exists($dir.'/hh_autoload.php')) {
require_once($dir.'/hh_autoload.php');
if (\file_exists($dir.'/autoload.hack')) {
require_once($dir.'/autoload.hack');
break;
}
if (\file_exists($dir.'/vendor/hh_autoload.php')) {
require_once($dir.'/vendor/hh_autoload.php');
if (\file_exists($dir.'/vendor/autoload.hack')) {
require_once($dir.'/vendor/autoload.hack');
break;
}

Expand All @@ -106,6 +106,7 @@ function verify_signatures_main(): noreturn {

$dir = \substr($dir, 0, $pos);
}
\Facebook\AutoloadMap\initialize();
(new CLIVerifier(vec(/* HH_IGNORE_ERROR[2050] */ $GLOBALS['argv'])))->main();
exit(0);
}

0 comments on commit ac9e813

Please sign in to comment.