Skip to content

fix: support build 5 and package_config 3 - #784

Merged
AlexV525 merged 2 commits into
FlutterGen:mainfrom
Carapacik:main
Nov 3, 2026
Merged

AlexV525 merged 2 commits into
FlutterGen:mainfrom
Carapacik:main

Conversation

@Carapacik

@Carapacik Carapacik commented Sep 2, 2026 •

Copy link
Copy Markdown
Contributor

What does this change?

Resolves dependency conflicts when using flutter_gen_runner with build 5.x or package_config 3.x by widening the supported version ranges:

  • build: ^4.0.0 → >=4.0.0 <6.0.0
  • package_config: ^2.1.0 → >=2.2.0 <4.0.0

Retains support for build 4.x and package_config 2.2.x. Updates the changelog; no generator code changes are required.

Fixes #783.

Validation

  • All 3 workspace integration tests passed with build 5.0.0, package_config 3.0.0, and build_runner 2.17.1.
  • All 89 core tests passed.
  • Static analysis passed for the runner and core packages.

Type of change

  • Bug fix

@codecov

codecov Bot commented Sep 2, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 97.37%. Comparing base (7c7200d) to head (3997d73).

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #784   +/-   ##
=======================================
  Coverage   97.37%   97.37%           
=======================================
  Files          24       24           
  Lines         989      989           
=======================================
  Hits          963      963           
  Misses         26       26           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Widen flutter_gen_runner dependency constraints to allow build 5.x and package_config 3.x, and document the compatibility update.

Validated with build 5.0.0, package_config 3.0.0, and build_runner 2.17.1: all 3 workspace integration tests and 89 core tests pass; static analysis reports no issues.
@Carapacik Carapacik changed the title Support package_config 3.0.0 fix: support build 5 and package_config 3 Oct 19, 2026
@Carapacik

Copy link
Copy Markdown
Contributor Author

@AlexV525 @wasabeef

Updated changelog to include support for new versions of build and package_config.

@AlexV525 AlexV525 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry for the late review. Thanks for the update!

@AlexV525
AlexV525 merged commit 1291448 into FlutterGen:main Nov 3, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG]: update package_config to v3

2 participants