[Compiler][Dart] file-level option evolving = false is ignored, causing a cross-language wire-format mismatch

オープン
#4,158 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

@ayush00git がすでに取り組んでいます。

2026年10月9日 から。

  • #4159 @ayush00git による — オープン

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
22/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
活発
技術スタック
dart
領域
compilers

調査の方向性

The Dart generator reads evolving only from message-level options, so the file-level option evolving = false; default never reaches it. Compare that lookup with how the Java or Go generators resolve the file-level default, then run the two-line repro schema through the Dart generator. Done means the output uses a non-evolving struct and the schema-consistent type id, matching peer languages. PR #4159 already targets this, so check it before starting.

索引モデルが issue の本文から書いたものです。

説明

The Dart generator resolves the evolving option from message-level options only, while every other generator (Java, Go, Rust, C++, Swift, C#, Python, JavaScript) honors the file-level option evolving = false; default.

A schema with file-level evolving = false therefore generates @ForyStruct() (compatible/evolving struct) and TypeIds.compatibleStruct in Dart while all peer languages emit schema-consistent structs — a cross-language wire-format mismatch for the same schema.

Repro:

option evolving = false;
message User { string name = 1; }
主要言語
Java
スター
4.6k
フォーク
470
平均マージ
9時間 28分
マージ済み PR(30日)
33

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

apache/fory のほかの issue

apache/fory の issue をすべて見る

似ている issue

Java の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。