Widen analyzer range to allow latest version (0.41.x) #346
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.
Motivation
To unlock the latest analyzer package version, as well as the latest versions of many packages that depend on it, including build packages, we need to widen the version range for this package.
Solution
Widen version range to allow analyzer 0.41.x, the latest minor version.
No other changes were necessary
Testing instructions
Verify locally that there are no analysis issues in this repo when using analyzer 0.41.x
Unfortunately, Dart 2.7.2 (which is what we use in CI) still can't resolve to this latest analyzer version due to SDK dependency constraints on this
build
package, so this has to be tested locally, with an SDK of at least Dart 2.9.Also, with the constraint as-is, for some reason
pub upgrade analyzer
won't resolve the latest version, but you can force it to resolve to analyzer 0.41.x by temporarily making the analyzer dependency^0.41.0
.