blob: 03642fe251afa03eab94a990098016c6b92aa709 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
def _test_chdir_remote_impl(ctx):
ctx.file("WORKSPACE", """workspace("test_chdir_remote")""")
ctx.file("BUILD.bazel", "")
for f in ["BUILD.bazel", "data_test.go", "data.txt"]:
input = Label("@io_bazel_rules_go//tests/legacy/test_chdir:{}".format(f))
ctx.template("sub/" + f, input)
_test_chdir_remote = repository_rule(
implementation = _test_chdir_remote_impl,
attrs = {},
)
def test_chdir_remote():
_test_chdir_remote(name = "test_chdir_remote")
|