Protobuild.toml 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. version = "unstable"
  2. generator = "gogoctrd"
  3. plugins = ["grpc", "fieldpath"]
  4. # Control protoc include paths. Below are usually some good defaults, but feel
  5. # free to try it without them if it works for your project.
  6. [includes]
  7. # Include paths that will be added before all others. Typically, you want to
  8. # treat the root of the project as an include, but this may not be necessary.
  9. before = ["./protobuf"]
  10. # Paths that should be treated as include roots in relation to the vendor
  11. # directory. These will be calculated with the vendor directory nearest the
  12. # target package.
  13. packages = ["github.com/gogo/protobuf"]
  14. # Paths that will be added untouched to the end of the includes. We use
  15. # `/usr/local/include` to pickup the common install location of protobuf.
  16. # This is the default.
  17. after = ["/usr/local/include"]
  18. # This section maps protobuf imports to Go packages. These will become
  19. # `-M` directives in the call to the go protobuf generator.
  20. [packages]
  21. "gogoproto/gogo.proto" = "github.com/gogo/protobuf/gogoproto"
  22. "google/protobuf/any.proto" = "github.com/gogo/protobuf/types"
  23. "google/protobuf/empty.proto" = "github.com/gogo/protobuf/types"
  24. "google/protobuf/descriptor.proto" = "github.com/gogo/protobuf/protoc-gen-gogo/descriptor"
  25. "google/protobuf/field_mask.proto" = "github.com/gogo/protobuf/types"
  26. "google/protobuf/timestamp.proto" = "github.com/gogo/protobuf/types"
  27. "google/protobuf/duration.proto" = "github.com/gogo/protobuf/types"
  28. # Lock down runhcs config
  29. [[descriptors]]
  30. prefix = "github.com/Microsoft/hcsshim/cmd/containerd-shim-runhcs-v1/options"
  31. target = "cmd/containerd-shim-runhcs-v1/options/next.pb.txt"
  32. ignore_files = [
  33. "google/protobuf/descriptor.proto",
  34. "gogoproto/gogo.proto"
  35. ]