| 1 |
# Initialize this as a self-contained Bazel workspace. |
| 2 |
workspace(name = "pgv_example") |
| 3 |
|
| 4 |
# Declare the protoc-gen-validate repository as an external dependency. |
| 5 |
# This uses a local_repository declaration because this workspace is part of |
| 6 |
# the same Git repository. External repositories should declare PGV as a |
| 7 |
# dependency using http_repository pointed at the PGV GitHub repository. |
| 8 |
local_repository( |
| 9 |
name = "com_envoyproxy_protoc_gen_validate", |
| 10 |
path = "../", |
| 11 |
) |
| 12 |
|
| 13 |
# Load the dependencies of PGV. This is required for the next step to work. |
| 14 |
load("@com_envoyproxy_protoc_gen_validate//bazel:repositories.bzl", "pgv_dependencies") |
| 15 |
|
| 16 |
pgv_dependencies() |
| 17 |
|
| 18 |
# Perform any necessary actions to initialize dependencies. |
| 19 |
load("@com_envoyproxy_protoc_gen_validate//bazel:dependency_imports.bzl", "pgv_dependency_imports") |
| 20 |
|
| 21 |
pgv_dependency_imports() |
| 22 |
|
| 23 |
load("@com_envoyproxy_protoc_gen_validate//:dependencies.bzl", "go_third_party") |
| 24 |
|
| 25 |
# gazelle:repository_macro dependencies.bzl%go_third_party |
| 26 |
go_third_party() |