Fix generating configs in third_party
We were stripping off the external/aos from the path. Whoops.
Change-Id: I53af6d281161cd1d3cd3dee42788ee0d3ba1add6
diff --git a/aos/config.bzl b/aos/config.bzl
index 8f040d6..b87fff2 100644
--- a/aos/config.bzl
+++ b/aos/config.bzl
@@ -33,7 +33,12 @@
ctx.actions.run(
outputs = [config, stripped_config],
inputs = all_files,
- arguments = [config.path, stripped_config.path, ctx.files.src[0].short_path, ctx.bin_dir.path] + [f.path for f in flatbuffers_depset.to_list()],
+ arguments = [
+ config.path,
+ stripped_config.path,
+ (ctx.label.workspace_root or ".") + "/" + ctx.files.src[0].short_path,
+ ctx.bin_dir.path,
+ ] + [f.path for f in flatbuffers_depset.to_list()],
progress_message = "Flattening config",
executable = ctx.executable._config_flattener,
)