| # |
| # Copyright 2021 Google LLC |
| # |
| # Licensed under the Apache License, Version 2.0 (the "License"); |
| # you may not use this file except in compliance with the License. |
| # You may obtain a copy of the License at |
| # |
| # http://www.apache.org/licenses/LICENSE-2.0 |
| # |
| # Unless required by applicable law or agreed to in writing, software |
| # distributed under the License is distributed on an "AS IS" BASIS, |
| # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| # See the License for the specific language governing permissions and |
| # limitations under the License. |
| # |
| |
| """ Workspace for Zetasql example """ |
| |
| workspace(name = "zetasql_example") |
| |
| load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") |
| |
| http_archive( |
| name = "com_google_zetasql", |
| strip_prefix = "zetasql-2023.11.1", |
| url = "https://github.com/google/zetasql/archive/refs/tags/2023.11.1.tar.gz", |
| ) |
| |
| # Transitive dependencies from the ZetaSQL WORKSPACE file: |
| |
| load("@com_google_zetasql//bazel:zetasql_deps_step_1.bzl", "zetasql_deps_step_1") |
| |
| zetasql_deps_step_1() |
| |
| load("@com_google_zetasql//bazel:zetasql_deps_step_2.bzl", "zetasql_deps_step_2") |
| |
| zetasql_deps_step_2( |
| java_deps = False, |
| testing_deps = False, |
| ) |
| |
| # Only need to load a subset of zetasql_deps_step_3: |
| |
| load("@com_google_protobuf//:protobuf_deps.bzl", "protobuf_deps") |
| |
| protobuf_deps() |
| |
| load("@com_github_grpc_grpc//bazel:grpc_deps.bzl", "grpc_deps") |
| |
| grpc_deps() |
| |
| load("@com_google_zetasql//bazel:zetasql_deps_step_4.bzl", "zetasql_deps_step_4") |
| |
| zetasql_deps_step_4() |