diff options
author | 2016-02-16 09:43:17 +0000 | |
---|---|---|
committer | 2016-02-16 09:45:00 +0000 | |
commit | 35d627c01a235603a7ed5c9eb9c2713962727b5a (patch) | |
tree | 89fd771c52db87304b480a4b5de9d8d830fe4fac /src | |
parent | 3bfef91ba88388d0f5ff7af045f69e30e0dfdca7 (diff) |
bazel_go_example_test.sh: Inline BUILD.go-toolchain
BUILD.go-toolchain was deleted as part of the base workspace removal
and made bazel_go_example_test starts to fails because it was copying
it.
Recreating its content in the test corrects the test fixture.
Fixes #905.
--
MOS_MIGRATED_REVID=114732179
Diffstat (limited to 'src')
-rwxr-xr-x | src/test/shell/bazel/bazel_go_example_test.sh | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/src/test/shell/bazel/bazel_go_example_test.sh b/src/test/shell/bazel/bazel_go_example_test.sh index 3a6a3510cf..605b88f274 100755 --- a/src/test/shell/bazel/bazel_go_example_test.sh +++ b/src/test/shell/bazel/bazel_go_example_test.sh @@ -39,7 +39,20 @@ EOF done fi done - ln -s $TEST_SRCDIR/tools/build_rules/go/toolchain/BUILD.go-toolchain tools/build_rules/go/toolchain/BUILD + cat <<'EOF' >tools/build_rules/go/toolchain/BUILD +package( + default_visibility = [ "//visibility:public" ]) + +filegroup( + name = "toolchain", + srcs = glob(["go/bin/*", "go/pkg/**", ]), +) + +filegroup( + name = "go_tool", + srcs = [ "go/bin/go" ], +) +EOF cat <<EOF > BUILD load("/tools/build_rules/go/def", "go_prefix") go_prefix("prefix") |