mirror of
https://github.com/ralsina/tartrazine.git
synced 2025-06-18 22:23:07 -03:00
Refactor Oniguruma integration
Instead of use a command to change imports before build, using a build tag to generate the correct binary. This will allow applications to compile enry using oniguruma with less troubles. Signed-off-by: Antonio Jesus Navarro Perez <antnavper@gmail.com>
This commit is contained in:
committed by
Denys Smirnov
parent
8da8516ac1
commit
15bb13117f
@ -37,10 +37,10 @@ On Ubuntu, it is
|
||||
sudo apt install libonig-dev
|
||||
```
|
||||
|
||||
To build enry with Oniguruma regexps, patch the imports with
|
||||
To build enry with Oniguruma regexps use the `oniguruma` build tag
|
||||
|
||||
```
|
||||
make oniguruma
|
||||
go get -v -t --tags oniguruma ./...
|
||||
```
|
||||
|
||||
and then rebuild the project.
|
||||
@ -162,7 +162,7 @@ We update enry when changes are done in linguist's master branch on the followin
|
||||
* [vendor.yml](https://github.com/github/linguist/blob/master/lib/linguist/vendor.yml)
|
||||
* [documentation.yml](https://github.com/github/linguist/blob/master/lib/linguist/documentation.yml)
|
||||
|
||||
Currently we don't have any procedure established to automatically detect changes in the linguist project and regenerate the code.
|
||||
Currently we don't have any procedure established to automatically detect changes in the linguist project and regenerate the code.
|
||||
So we update the generated code as needed, without any specific criteria.
|
||||
|
||||
If you want to update *enry* because of changes in linguist, you can run the *go
|
||||
@ -217,7 +217,7 @@ If you want to reproduce the same benchmarks you can run:
|
||||
|
||||
benchmarks/run.sh
|
||||
|
||||
from the root's project directory and it'll run benchmarks for enry and linguist, parse the output, create csv files and create a histogram (you must have installed [gnuplot](http://gnuplot.info) in your system to get the histogram).
|
||||
from the root's project directory and it'll run benchmarks for enry and linguist, parse the output, create csv files and create a histogram (you must have installed [gnuplot](http://gnuplot.info) in your system to get the histogram).
|
||||
|
||||
This can take some time, so to run local benchmarks for a quick check you can either:
|
||||
|
||||
|
Reference in New Issue
Block a user