Skip to content

Commit

Permalink
Move the generated proto golang files to root
Browse files Browse the repository at this point in the history
  • Loading branch information
l46kok committed Mar 21, 2024
1 parent cbdb28b commit e6233d1
Show file tree
Hide file tree
Showing 6 changed files with 4 additions and 5 deletions.
File renamed without changes.
File renamed without changes.
File renamed without changes.
9 changes: 4 additions & 5 deletions regen_go_proto_canonical_protos.sh
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
#!/usr/bin/env bash
bazel build //proto/cel/expr:all
bazelisk build //proto/cel/expr:all

rm -vrf ./expr
mkdir ./expr
rm -vf ./*.pb.go

files=( $(bazel cquery //proto/cel/expr:expr_go_proto --output=starlark --starlark:expr="'\n'.join([f.path for f in target.output_groups.go_generated_srcs.to_list()])") )
files=( $(bazelisk cquery //proto/cel/expr:expr_go_proto --output=starlark --starlark:expr="'\n'.join([f.path for f in target.output_groups.go_generated_srcs.to_list()])") )
for src in "${files[@]}";
do
cp -v "${src}" ./expr/
cp -v "${src}" ./
done
File renamed without changes.
File renamed without changes.

0 comments on commit e6233d1

Please sign in to comment.