| # |
| # Copyright 2020 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(name = "com_github_google_differential_privacy_privacy_on_beam_v3") |
| |
| local_repository( |
| name = "com_google_differential_privacy", |
| path = "../", |
| ) |
| |
| local_repository( |
| name = "com_github_google_differential_privacy_go_v3", |
| path = "../go", |
| ) |
| |
| load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") |
| |
| http_archive( |
| name = "io_bazel_rules_go", |
| sha256 = "80a98277ad1311dacd837f9b16db62887702e9f1d1c4c9f796d0121a46c8e184", |
| urls = [ |
| "https://mirror.bazel.build/github.com/bazelbuild/rules_go/releases/download/v0.46.0/rules_go-v0.46.0.zip", |
| "https://github.com/bazelbuild/rules_go/releases/download/v0.46.0/rules_go-v0.46.0.zip", |
| ], |
| ) |
| |
| http_archive( |
| name = "bazel_gazelle", |
| sha256 = "32938bda16e6700063035479063d9d24c60eda8d79fd4739563f50d331cb3209", |
| urls = [ |
| "https://mirror.bazel.build/github.com/bazelbuild/bazel-gazelle/releases/download/v0.35.0/bazel-gazelle-v0.35.0.tar.gz", |
| "https://github.com/bazelbuild/bazel-gazelle/releases/download/v0.35.0/bazel-gazelle-v0.35.0.tar.gz", |
| ], |
| ) |
| |
| load("@io_bazel_rules_go//go:deps.bzl", "go_register_toolchains", "go_rules_dependencies") |
| |
| go_rules_dependencies() |
| |
| go_register_toolchains(version = "1.22.0") |
| |
| # Load Go DP library dependencies. |
| load("@com_github_google_differential_privacy_go_v3//:go_differential_privacy_deps.bzl", "go_differential_privacy_deps") |
| |
| go_differential_privacy_deps() |
| |
| # Load dependencies for the base workspace. |
| load("@com_google_differential_privacy//:differential_privacy_deps.bzl", "differential_privacy_deps") |
| |
| differential_privacy_deps() |
| |
| # Protobuf transitive dependencies. |
| load("@com_google_protobuf//:protobuf_deps.bzl", "protobuf_deps") |
| |
| # Load Privacy on Beam dependencies. |
| load(":privacy_on_beam_deps.bzl", "privacy_on_beam_deps") |
| |
| # gazelle:repository_macro privacy_on_beam_deps.bzl%privacy_on_beam_deps |
| privacy_on_beam_deps() |
| |
| protobuf_deps() |
| |
| # Gazelle dependencies must be added last. |
| load("@bazel_gazelle//:deps.bzl", "gazelle_dependencies") |
| |
| gazelle_dependencies() |
| |
| # Googleapis needs to be included separately for dependencies to work: https://github.com/bazelbuild/rules_go/issues/3625#issuecomment-1643804054 |
| http_archive( |
| name = "googleapis", |
| sha256 = "78aae8879967e273044bc786e691d9a16db385bd137454e80cd0b53476adfc2d", |
| strip_prefix = "googleapis-c09efadc6785560333d967f0bd40f1d1c3232088", |
| urls = ["https://github.com/googleapis/googleapis/archive/c09efadc6785560333d967f0bd40f1d1c3232088.tar.gz"], |
| ) |
| |
| load("@googleapis//:repository_rules.bzl", "switched_rules_by_language") |
| |
| switched_rules_by_language( |
| name = "com_google_googleapis_imports", |
| ) |