chore: Upgrade to Melos 8.1.0#3944
Merged
Merged
Conversation
- Bump melos to ^8.1.0 - Drop custom analyze script in favor of the built-in melos analyze - Drop custom test wrapper; CI runs test:select to keep the formatter output - Update lint:all to call melos analyze (steps do not resolve the new built-in by bare name) - Update CONTRIBUTING to use melos analyze / melos test
luanpotter
approved these changes
Jul 6, 2026
luanpotter
left a comment
Member
There was a problem hiding this comment.
LGTM, glad to see that the test_formatter still works!
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.
Description
Upgrades the workspace to Melos 8.1.0 and adopts the new built-in commands where they fully replace custom scripts.
melosto^8.1.0.analyzescript in favor of the built-inmelos analyze.testwrapper. CI now runsmelos run test:select --no-selectso thetest_formatter.dartaggregated output is preserved, while the built-inmelos teststays available for a plain run.lint:allto callmelos analyzeexplicitly (see notes).CONTRIBUTING.mdto usemelos analyze/melos test.Verification notes
run:+ siblingexec:map form, which this repo never used. All scripts use inlinemelos exec ...insiderun:, which is still valid in v8. Confirmed the config parses,melos bootstrapsucceeds, andrun:+packageFiltersstill scopes correctly.analyzeruns a single-passdart analyzeacross packages and fully replaces the custom script. The CIanalyzejobs already useinvertase/github-action-dart-analyzer, so the custom script was only used bylint:all.testauto-detectstest/dirs and picksflutter testvsdart testper package, but has no custom-formatter hook, so it can't reproducetest_formatter.dart. CI therefore stays on the formatter path viatest:select.Two v8 behaviors worth noting:
steps:,formatresolves to the built-in butanalyze/testdo not (they fall through to shell), so built-in commands other thanformatmust be spelled out asmelos analyzein steps.test/analyzeshadows the built-in even for the baremelos test/melos analyzeinvocation.