-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Guide: Compiling Vector with local changes to VRL
This guide describes the steps needed to compile VRL locally and use that in the compilation of Vector.
-
Clone the VRL repo to your workspace directory, alongside your copy of the Vector repo.
-
Open the git log and search for “Prepare for” or “release” , look for the most recent commit such as: eeb2736cb - (HEAD) chore: prepare for 0.6.0 release (#364) (6 weeks ago)
-
This should generally line up with the latest published release of the VRL crate , but double check the Version of the crate that is specified in the dep listing for VRL in the Vector Cargo.toml files.
-
Checkout that commit in the VRL clone.
-
In Vector, edit the Cargo.toml files in the repo that specify the vrl crate. At the time of this writing this includes:
-
Cargo.toml
-
lib/codecs/Cargo.toml
-
lib/vector-core/Cargo.toml
-
The edit to make is to specify the path to your checkout of the VRL repo:
-vrl = { version = "0.6.0", features = ["cli", "test", "test_framework", "arbitrary"] }
+vrl = { version = "0.6.0", features = ["cli", "test", "test_framework", "arbitrary"], path = "../vrl" }
- Build Vector. This should work. 🙏