Skip to content

Update to protobuf ^6 #66

Description

@Teolone88

Why I am currently vendoring

My package (package:gantry) requires protobuf ^6. Upstream cast_plus pins protobuf ^3.1.0 and its generated cast_channel.pb.dart calls PbList(), whose constructors are private in protobuf 6.0.0+.

Current Patch

In lib/cast_channel/cast_channel.pb.dart, each createRepeated() was changed from:

static $pb.PbList<T> createRepeated() => $pb.PbList<T>();

to:

static $core.List<T> createRepeated() => <T>[];

pubspec.yaml allows protobuf: '>=3.1.0 <7.0.0'.

Request

Upstream publishes a release regenerated with protoc_plugin ≥ 25 / protobuf 6.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions