grpc-java/xds/third_party/protoc-gen-validate
Eric Anderson b5d7f1394d xds: Fix import scripts deleting the wrong files, use of trap, and full git clone
The scripts used `git rev-parse --show-toplevel` so it appeared they
could be used from any directory. But references to "GIT_BASE_DIR"
weren't absolute, so it did matter the starting directory. And it
mattered in a big way for xds/import.sh as if you ran it from the
grpc-java directory it would delete the xds directory in grpc-java, not
third_party.

The trap that deleted the GIT_BASE_DIR was very broken. In addition to
potentially deleting the wrong directory, it was unnecessary because
that directory was in tmpdir. But you can only have one trap per signal,
so this unnecessary trap disabled the trap that deleted tmpdir.

The script needed a full clone because it needed to check out a specific
commit. To work with --depth 1 you have to use some convoluted syntax.
But just downloading a tar.gz is easy and seems should work fine on Mac.

protoc-gen-validate/import.sh didn't have the trap problem, but seemed
to have drifted from the other scritps. All the scripts were synced to
match.
2023-08-15 16:54:32 -07:00
..
src/main/proto/validate xds: Envoy proto sync to 2022-04-08 (#9101) 2022-04-25 16:38:17 -07:00
LICENSE xds: rollback PGV dependency from using maven artifact to importing proto source 2020-03-27 17:09:27 -07:00
NOTICE xds: rollback PGV dependency from using maven artifact to importing proto source 2020-03-27 17:09:27 -07:00
import.sh xds: Fix import scripts deleting the wrong files, use of trap, and full git clone 2023-08-15 16:54:32 -07:00