Skip to content

Commit

Permalink
bazel: copy .bazelversion for envoy filter examples (#18730) (#20011)
Browse files Browse the repository at this point in the history
This file needs to be copied otherwise bazelisk picks whichever current
version is out there which could break with any release

Signed-off-by: Keith Smiley <keithbsmiley@gmail.com>
Signed-off-by: Yan Avlasov <yavlasov@google.com>

Co-authored-by: Keith Smiley <keithbsmiley@gmail.com>
  • Loading branch information
yanavlasov and keith committed Feb 17, 2022
1 parent 25dbd02 commit ff19a7a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ci/filter_example_setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ sed -e "s|{ENVOY_SRCDIR}|${ENVOY_SRCDIR}|" "${ENVOY_SRCDIR}"/ci/WORKSPACE.filter
mkdir -p "${ENVOY_FILTER_EXAMPLE_SRCDIR}"/bazel
ln -sf "${ENVOY_SRCDIR}"/bazel/get_workspace_status "${ENVOY_FILTER_EXAMPLE_SRCDIR}"/bazel/
cp -f "${ENVOY_SRCDIR}"/.bazelrc "${ENVOY_FILTER_EXAMPLE_SRCDIR}"/
rm -f "${ENVOY_FILTER_EXAMPLE_SRCDIR}"/.bazelversion
cp -f "${ENVOY_SRCDIR}"/.bazelversion "${ENVOY_FILTER_EXAMPLE_SRCDIR}"/
cp -f "$(bazel info workspace)"/*.bazelrc "${ENVOY_FILTER_EXAMPLE_SRCDIR}"/

export FILTER_WORKSPACE_SET=1

0 comments on commit ff19a7a

Please sign in to comment.