Skip to content
This repository was archived by the owner on Aug 25, 2025. It is now read-only.

Conversation

@fredemmott
Copy link
Contributor

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/.....

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/.....
@ghost ghost added the CLA Signed label Sep 24, 2016
@gauravkdeo gauravkdeo merged commit 5b577c5 into hhvm:master Sep 27, 2016
@fredemmott fredemmott deleted the better-default-root-dir branch November 8, 2016 01:12
dienesl pushed a commit to dienesl/hack-codegen that referenced this pull request Feb 25, 2023
* re-use stack while recursively calling find_offset_of_leading

* use Vec\take instead of array_pop
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants