google / google/protobuf.dart

Include the package name as a constant

Open
#823 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Dart
Stars
572
Forks
196
Avg merge
1h 59m
Merged PRs (30d)
2

Description

Hello,
Would it be possible to include the package name as a Dart constant?

For a project which uses Protobuf there is a versioning system in the package name in order to establish a compatible communication between client and server. Example: `package Project.v1_3`. Currently I need to update a constant manually every time the protocol versioning changes, where I could simply use an autogenerated constant from the proto file.

Contributor guide

Open the contributing guide

Research direction

Start at the Dart code-generation entry point that reads a .proto file and trace how its package name is handled. Define the expected generated constant and verify that a package such as Project.v1_3 produces the correct value, including a test for the generated output.

Written by the indexing model from the issue text.

Assessment

Tech stack
dart
Domain
api, tooling
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.