I am trying to compile an open source project called Envoy using Bazel (located here: https://github.com/envoyproxy/envoy). I am getting this error message when trying to run the build script:
The genrule code causing this issue is located in the file source/common/version/BUILD and looks like this:
genrule(
name = "generate_version_number",
srcs = ["//:VERSION"],
outs = ["version_number.h"],
cmd = """echo "#define BUILD_VERSION_NUMBER \\"$$(cat $<)\\"" >$@""",
visibility = ["//visibility:private"],
)
The error "missing terminating '"' is coming from somewhere in that cmd argument to genrule, but I can't figure it out. I have tried moving the quotes around about 1,000 different ways and I continue to get the same error.
