# Initialize this as a self-contained Bazel workspace. workspace(name = "pgv_example") # Declare the protoc-gen-validate repository as an external dependency. # This uses a local_repository declaration because this workspace is part of # the same Git repository. External repositories should declare PGV as a # dependency using http_repository pointed at the PGV GitHub repository. local_repository( name = "com_envoyproxy_protoc_gen_validate", path = "../", ) # Load the dependencies of PGV. This is required for the next step to work. load("@com_envoyproxy_protoc_gen_validate//bazel:repositories.bzl", "pgv_dependencies") pgv_dependencies() # Perform any necessary actions to initialize dependencies. load("@com_envoyproxy_protoc_gen_validate//bazel:dependency_imports.bzl", "pgv_dependency_imports") pgv_dependency_imports() load("@com_envoyproxy_protoc_gen_validate//:dependencies.bzl", "go_third_party") # gazelle:repository_macro dependencies.bzl%go_third_party go_third_party()