Repository navigation
fix: source_helper を 1.4.0 未満に固定してコード生成の失敗を避ける - #98
Merged
Merged
Conversation
Co-Authored-By: Claude <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
概要
CI の
Dart 3.9.0ジョブでbuild_runnerのコンパイルが失敗する問題への対応。原因
json_serializable 6.14.1はsource_helper ^1.3.10を許容する。10/19 公開のsource_helper 1.4.0が解決されると、拡張メソッド(toStringNonNullable、qualifiedName)とconstructorByNameがjson_serializable内の同名定義と衝突し、コード生成ツールのコンパイルに失敗する。Dart 3.9.0 ではjson_serializable 6.15.x(Dart 3.12 以上が必要)へ上がれないため、この組み合わせが解決される。変更内容
pubspec.yamlのdev_dependenciesにsource_helper: ">=1.3.10 <1.4.0"を追加確認
pub get・build_runner・dart analyze・dart testが通ることを確認(source_helper 1.3.13に解決)備考
dev_dependenciesのため、利用者側の依存解決には影響しない