...

Text file src/edge-infra.dev/pkg/edge/api/graphiql/copy_build.bzl

Documentation: edge-infra.dev/pkg/edge/api/graphiql

     1"""A macro that can be used for writing files built by Bazel to the source tree."""
     2
     3def copy_build(name, src_path, out_path):
     4    """Copies the contents of the input Bazel label to the source tree at out_path
     5
     6    Args:
     7        name: The name of the produced rule, and the name this rule will be callable from.
     8        src_path: Location or filegroup name of bazel-build directory
     9        out_path: Relative path from root of the repository to write the files.
    10    """
    11
    12    native.sh_binary(
    13        name = name,
    14        srcs = ["//pkg/edge/api/graphiql:copy-build.sh"],
    15        args = [
    16            "$(location %s)" % src_path,
    17            out_path,
    18        ],
    19        data = [src_path],
    20    )

View as plain text