def METHOD_NAME(ctx):
    """Combine descriptors for all transitive proto dependencies into one file.
    Warning: Concatenating all of the descriptor files with a single `cat` command
    could exceed system limits (1MB+). For example, a dependency on gwslog.proto
    will trigger this edge case.
    When writing new code, prefer to accept a list of descriptor files instead of
    just one so that this limitation won't impact you.
    """
    output = ctx.actions.declare_file(ctx.attr.name + "-transitive-descriptor-set.proto.bin")
    calculate_transitive_descriptor_set(ctx.actions, ctx.attr.deps, output)
    return DefaultInfo(
        files = depset([output]),
        runfiles = ctx.runfiles(files = [output]),
    )