A tool that processes the most common jinja value templates in dbt model
files. The tool depends on tree-sitter and the tree-sitter-jinja2 library.
The current strategy is for this processor to be 100% certain when it can
accurately extract values from a given model file. Anything less than 100%
certainty returns an exception so that the model can be rendered with python
Jinja instead.
NOTE: If this package has multiple flavors (see below), then use one of them instead of the name specified above. NOTE: This is a Python port. Instead of py312-dbt-extractor listed in the above command, you can pick from the names under the Packages section.
*/*: Fix many Rust ports to run without COMPAT11
RISCV does not include COMPAT11 by default. But Rust's libc bound the
compat-11 symbols until version 0.2.176. Patch a great many Rust ports
to use a newer version of libc, to eliminate the dependency on COMPAT11.
Explicitly patching Cargo.lock isn't usually necessarily, since within
the build jail cargo is forced to use whichever crates Makefile.crates
installs there.
Notes on specific ports:
* textproc/bookokrat: Rework bookokrat's existing patch to be more
robust. Also, report the issue upstream:
https://github.com/bugzmanov/bookokrat/issues/182
(Only the first 15 lines of the commit message are shown above )
devel/py-dbt-extractor: Use py-build to build wheel
Also remove dependency devel/py-tree-sitter, it is pinned in
Makefile.crates already and is written in Rust.
Nice bonus: The shared library is automatically stripped, down from 22
MB to 800 kB!
devel/py-dbt-extractor: new port
A tool that processes the most common jinja value templates in dbt model
files. The tool depends on tree-sitter and the tree-sitter-jinja2 library.
The current strategy is for this processor to be 100% certain when it can
accurately extract values from a given model file. Anything less than 100%
certainty returns an exception so that the model can be rendered with python
Jinja instead.
PR: 274578
Author: Pat Maddox <pat@patmaddox.com>