diff --git a/WORKSPACE b/WORKSPACE index f25901bc..ab29a51a 100644 --- a/WORKSPACE +++ b/WORKSPACE @@ -53,4 +53,21 @@ http_archive( "https://mirror.bazel.build/github.com/bazelbuild/rules_license/releases/download/0.0.4/rules_license-0.0.4.tar.gz", "https://github.com/bazelbuild/rules_license/releases/download/0.0.4/rules_license-0.0.4.tar.gz", ], -) \ No newline at end of file +) + +# Shell rules. +http_archive( + name = "rules_shell", + sha256 = "bc61ef94facc78e20a645726f64756e5e285a045037c7a61f65af2941f4c25e1", + strip_prefix = "rules_shell-0.4.1", + urls = [ + "https://storage.googleapis.com/mirror.tensorflow.org/github.com/bazelbuild/rules_shell/releases/download/v0.4.1/rules_shell-v0.4.1.tar.gz", + "https://github.com/bazelbuild/rules_shell/releases/download/v0.4.1/rules_shell-v0.4.1.tar.gz", + ], +) + +load("@rules_shell//shell:repositories.bzl", "rules_shell_dependencies", "rules_shell_toolchains") + +rules_shell_dependencies() + +rules_shell_toolchains() diff --git a/package/BUILD b/package/BUILD index 4a6d8b0d..44b14913 100644 --- a/package/BUILD +++ b/package/BUILD @@ -1,3 +1,5 @@ +load("@rules_shell//shell:sh_binary.bzl", "sh_binary") + licenses(["notice"]) # Apache 2.0 sh_binary( diff --git a/tensorflow_gnn/runner/utils/BUILD b/tensorflow_gnn/runner/utils/BUILD index 054a7332..08ef5574 100644 --- a/tensorflow_gnn/runner/utils/BUILD +++ b/tensorflow_gnn/runner/utils/BUILD @@ -1,5 +1,6 @@ # Placeholder: load py_library load("@tensorflow_gnn//tensorflow_gnn:tensorflow_gnn.bzl", "py_binary") +load("@rules_shell//shell:sh_test.bzl", "sh_test") load("@tensorflow_gnn//tensorflow_gnn:tensorflow_gnn.bzl", "tf_py_test") # Copybara rewrites load() statements back and forth; do not reformat.