summaryrefslogtreecommitdiff
path: root/sdk/java_sdk_test.go
diff options
context:
space:
mode:
author Cole Faust <colefaust@google.com> 2022-08-04 15:49:20 -0700
committer Cole Faust <colefaust@google.com> 2022-08-04 15:51:58 -0700
commit082c5f31cc6d8bf1e28a552970d45b3f609fe82b (patch)
treeb670c2aebc953464f9106eaf30659af42226edce /sdk/java_sdk_test.go
parent113bd15013b4453b92898dd326d07989568cc193 (diff)
Fix invalid json when product variables have quotes
Go's json encoder will escape quotes with backslashes. But we put the encoded json into a Starlark string literal, which will evaluate the \" into just a regular quote, so they won't be escaped when the json.parse() gets to them. Escape all backslashes so this doesn't happen. Test: lunch sdk_phone_x86_64-userdebug; b build //build/bazel/examples/apex/minimal:build.bazel.examples.apex.minimal Change-Id: I473e6c42968fcf73d47dec61670956a7ac9a6c88
Diffstat (limited to 'sdk/java_sdk_test.go')
0 files changed, 0 insertions, 0 deletions