Skip to content

Commit ac9e813

Browse files
committed
Stop using files with pseudomains
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.
1 parent 5492e84 commit ac9e813

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

bin/hh-codegen-verify-signatures.hack

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -84,12 +84,12 @@ final class CLIVerifier {
8484
function verify_signatures_main(): noreturn {
8585
$dir = __DIR__;
8686
while (true) {
87-
if (\file_exists($dir.'/hh_autoload.php')) {
88-
require_once($dir.'/hh_autoload.php');
87+
if (\file_exists($dir.'/autoload.hack')) {
88+
require_once($dir.'/autoload.hack');
8989
break;
9090
}
91-
if (\file_exists($dir.'/vendor/hh_autoload.php')) {
92-
require_once($dir.'/vendor/hh_autoload.php');
91+
if (\file_exists($dir.'/vendor/autoload.hack')) {
92+
require_once($dir.'/vendor/autoload.hack');
9393
break;
9494
}
9595

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

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

0 commit comments

Comments
 (0)