WORKSPACE 942 B

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