Skip to content
Browse files

Update Go proto generation scripts to find the generated files in 'ba…

…zel-bin/' instead of 'bazel-genfiles/'

These directories are being unified (bazelbuild/bazel#6761), so the distinction is not meaningful, except that in earlier versions of Bazel (e.g. 0.24ish) only bazel-bin is written to.

PiperOrigin-RevId: 282721127
Change-Id: I4028f0bb7ed93314c15fb3761762a30c5d647b42
  • Loading branch information
timford committed Nov 27, 2019
1 parent 48483b5 commit 35e561c2f872223b559a22b9888674b3e599e2c8
Showing with 1 addition and 1 deletion.
  1. +1 −1 testing/
@@ -41,7 +41,7 @@ generate_go_proto_files() {
import_path=$([[ ${xml} =~ \<string\ name=\"importpath\"\ value=\"(.*)\"\/\> ]]; echo ${BASH_REMATCH[1]})

# This is the path to the generated file.
genfile=$(ls bazel-genfiles/${target_path}/*/${target_name}%/${import_path}/*.pb.go)
genfile=$(ls bazel-bin/${target_path}/*/${target_name}%/${import_path}/*.pb.go)

# Figure out where to copy it.
filename=$(basename ${genfile})

0 comments on commit 35e561c

Please sign in to comment.
You can’t perform that action at this time.