Pin tree-sitter language grammar versions
What does this merge request do and why?
Pin tree-sitter language grammar versions
We are currently building tree-sitter grammars using the latest Git commits. While this allows us to pick up new improvements fast, it also can cause unexpected breaking changes. This commit also add some improvements to the git clone command to speed up the cloning process.
Closes https://gitlab.com/gitlab-org/modelops/ai-model-validation-and-research/prompt-library/-/issues/128
How to set up and validate locally
- Ensure GCP environment variables are setup.
- Check out to this merge request's branch.
- Run the follow command to build tree-sitter grammars in Docker.
docker build --target=client --no-cache --tag promptlib-client:0.2.0 .
- Confirm the Docker image is built successfully.
Merge request checklist
-
I've ran the affected pipeline(s) to validate that nothing is broken. -
Tests added for new functionality. If not, please raise an issue to follow up. -
Documentation added/updated, if needed.
Edited by Tan Le