1"""Loads proto descriptors, including imports, of this repo into lucicfg proto 2registry, so protos can be imported as load("@proto//..."). 3""" 4 5lucicfg.check_version("1.8.6", "Please update depot_tools") 6 7# Descriptor set providing commonly used protocol buffers such 8# as duration, field_mask, etc.. See LUCI docs. 9# buildifier: disable=load-on-top 10load("@stdlib//internal/descpb.star", "wellknown_descpb") 11load("@proto//google/protobuf/descriptor.proto", descriptorpb = "google.protobuf") 12 13protos = proto.new_descriptor_set( 14 name = "chromiumos", 15 blob = proto.to_wirepb( 16 io.read_proto( 17 descriptorpb.FileDescriptorSet, 18 "../../generated/descriptors.json", 19 ), 20 ), 21 deps = [wellknown_descpb], 22) 23 24# We register here so that users don't have to. 25protos.register() 26