This repository was archived by the owner on Aug 25, 2025. It is now read-only.
Commit 42e0f5b
committed
Better HackCodegenConfig::getRootDir()
This should usually be used via composer, so it will end up in
PROJECTROOT/vendor/facebook/hack-codegen/
If this is the case, go for that, rather than PROJECTROOT/vendor/facebook/hack-codegen/src/
Tested with `codegen_generated_from_script()` with no args; generated file
now contains:
```
* To re-generate this file run vendor/phpunit/phpunit/phpunit
```
Previously it had the *full* path to the script - /Users/fred/.....1 parent aa7af56 commit 42e0f5b
1 file changed
+8
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
| 40 | + | |
40 | 41 | | |
41 | | - | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
42 | 49 | | |
43 | 50 | | |
0 commit comments