diff --git a/ENVOY_VERSION b/ENVOY_VERSION new file mode 100644 index 0000000..0411837 --- /dev/null +++ b/ENVOY_VERSION @@ -0,0 +1 @@ +80c1ac2143a7a73932c9dff814d38fd6867fe691 \ No newline at end of file diff --git a/README.md b/README.md index 8f6ed67..47236a4 100644 --- a/README.md +++ b/README.md @@ -56,6 +56,17 @@ curl localhost:1062/uuid to make sure the (passthrough) filter is working. -[78efd97]: https://github.com/envoyproxy/envoy/tree/80c1ac2143a7a73932c9dff814d38fd6867fe691 + +## Update Envoy Version + +To update the Envoy version used in this repository, execute the following command: + +``` +CURRENT_VERSION="$(cat ENVOY_VERSION)" +NEW_VERSION=80c1ac2143a7a73932c9dff814d38fd6867fe691 # Whatever the head commit in envoyproxy/envoy repo. +grep -rlF "${CURRENT_VERSION}" . | xargs sed -i "s/${CURRENT_VERSION}/${NEW_VERSION}/g" +``` + +[80c1ac2143a7a73932c9dff814d38fd6867fe691]: https://github.com/envoyproxy/envoy/tree/80c1ac2143a7a73932c9dff814d38fd6867fe691 [Envoy]: https://github.com/envoyproxy/envoy [High Level Doc]: https://www.envoyproxy.io/docs/envoy/latest/intro/arch_overview/advanced/dynamic_modules diff --git a/rust/Cargo.lock b/rust/Cargo.lock index 2910622..9d18895 100644 --- a/rust/Cargo.lock +++ b/rust/Cargo.lock @@ -1,6 +1,6 @@ # This file is automatically @generated by Cargo. # It is not intended for manual editing. -version = 3 +version = 4 [[package]] name = "aho-corasick" @@ -84,7 +84,7 @@ checksum = "60b1af1c220855b6ceac025d3f6ecdd2b7c4894bfe9cd9bda4fbb4bc7c0d4cf0" [[package]] name = "envoy-proxy-dynamic-modules-rust-sdk" version = "0.1.0" -source = "git+https://github.com/envoyproxy/envoy?rev=78efd97#78efd979f9e33a128efffc015ccba39df5481563" +source = "git+https://github.com/envoyproxy/envoy?rev=80c1ac2143a7a73932c9dff814d38fd6867fe691#80c1ac2143a7a73932c9dff814d38fd6867fe691" dependencies = [ "bindgen", "mockall", diff --git a/rust/Cargo.toml b/rust/Cargo.toml index 3efbb54..2f703e9 100644 --- a/rust/Cargo.toml +++ b/rust/Cargo.toml @@ -8,7 +8,7 @@ repository = "https://github.com/envoyproxy/dynamic-modules-example" [dependencies] # The SDK version must match the Envoy version due to the strict compatibility requirements. -envoy-proxy-dynamic-modules-rust-sdk = { git = "https://github.com/envoyproxy/envoy", rev = "78efd97" } +envoy-proxy-dynamic-modules-rust-sdk = { git = "https://github.com/envoyproxy/envoy", rev = "80c1ac2143a7a73932c9dff814d38fd6867fe691" } [lib] name = "rust_module"