Avoid using rsync in `//cmake:cmake_build`

I found that this test fails when I try to run it from our protobuf repo CI
setup, probably because rsync is not available in the Docker image there. Let's
just use `cp` instead so that the test works even if rsync is unavailable.

PiperOrigin-RevId: 557225733
pull/13675/head^2
Adam Cozzette 2 years ago committed by Copybara-Service
parent 56a6ecd142
commit 713e18e56d
  1. 2
      cmake/BUILD.bazel

@ -92,7 +92,7 @@ make_shell_script(
name = "gen_run_cmake_build",
out = "run_cmake_build.sh",
contents = "set -ex\n" +
"cd $(dirname $1) && rsync -avR . .. && cd ../..\n" +
"cd $(dirname $1) && cp -r . .. && cd ../..\n" +
"mkdir build && cd build && cmake ../cmake && make -j8 && make test",
)

Loading…
Cancel
Save