This commit is contained in:
parent
1789357a08
commit
401fd5bead
2 changed files with 3 additions and 3 deletions
|
|
@ -110,7 +110,7 @@ class DataBuildGraph:
|
||||||
package_name = self._get_package_name()
|
package_name = self._get_package_name()
|
||||||
print(f"Generated DataBuild package '{name}' in {generated_dir}")
|
print(f"Generated DataBuild package '{name}' in {generated_dir}")
|
||||||
if package_name != "UNKNOWN_PACKAGE":
|
if package_name != "UNKNOWN_PACKAGE":
|
||||||
print(f"Run 'bazel build //{package_name}/generated:{name}_graph.analyze' to use the generated graph")
|
print(f"Run 'bazel build \"@databuild//{package_name}/generated:{name}_graph.analyze\"' to use the generated graph")
|
||||||
else:
|
else:
|
||||||
print(f"Run 'bazel build generated:{name}_graph.analyze' to use the generated graph")
|
print(f"Run 'bazel build generated:{name}_graph.analyze' to use the generated graph")
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1017,7 +1017,7 @@ try:
|
||||||
if generator_path:
|
if generator_path:
|
||||||
import subprocess
|
import subprocess
|
||||||
result = subprocess.run([
|
result = subprocess.run([
|
||||||
"bazel", "run", "//databuild/dsl/python:generator", "--",
|
"bazel", "run", "@databuild//databuild/dsl/python:generator", "--",
|
||||||
"{module_path}", "{graph_attr}", output_dir
|
"{module_path}", "{graph_attr}", output_dir
|
||||||
], cwd=workspace_root if workspace_root else ".", capture_output=True, text=True)
|
], cwd=workspace_root if workspace_root else ".", capture_output=True, text=True)
|
||||||
|
|
||||||
|
|
@ -1116,7 +1116,7 @@ _databuild_dsl_generator_rule = rule(
|
||||||
default = "//databuild:py_proto",
|
default = "//databuild:py_proto",
|
||||||
),
|
),
|
||||||
"_generator": attr.label(
|
"_generator": attr.label(
|
||||||
default = "//databuild/dsl/python:generator",
|
default = "@databuild//databuild/dsl/python:generator",
|
||||||
executable = True,
|
executable = True,
|
||||||
cfg = "target",
|
cfg = "target",
|
||||||
),
|
),
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue