-
Notifications
You must be signed in to change notification settings - Fork 44
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
pana incorrectly reports: "SEVERE: dart pub outdated
failed"
#1254
Comments
dart pub outdated
faileddart pub outdated
failed"
I am not able to reproduce. Can you spot something I am doing wrong?
pana 0.21.36 |
I think you need to checkout the specific commit:
and also run pana from packages/mason_cli instead of packages/mason_api
|
pana .
reports thatdart pub outdated
failed but runningdart pub outdated
succeeds with no errors.The error
pana
reports also seems incorrect becauseevery version of mason_api depends on http ^0.13.4
is false:The mason_api
pubspec.yaml
:And the
mason_api
pubspec.lock
entry for the resolvedpackage:http
dependency:Full Pana Output:
OUT:
Resolving dependencies...
ERR:
Because no versions of pub_updater match >0.4.0 <0.5.0 and pub_updater 0.4.0 depends on http ^1.0.0, pub_updater ^0.4.0 requires http ^1.0.0.
And because every version of mason_api depends on http ^0.13.4, pub_updater ^0.4.0 is incompatible with mason_api.
So, because mason_cli depends on both mason_api ^0.1.0-dev.10 and pub_updater ^0.4.0, version solving failed.
You can try the following suggestion to make the pubspec resolve:
Full Dart Pub Outdated Output:
If I change the version constraint in
package:mason_cli
onpackage:pub_updater
topub_updater: ">=0.3.0 <0.5.0"
then pana does not report this issue even though it resolves topub_updater
0.4.0 in the lockfile:Link to CI Failure: https://github.com/felangel/mason/actions/runs/6270259565/job/17027948266?pr=1080
Reproduction Repo: https://github.com/felangel/mason (directory:
packages/mason_cli
)pana 0.21.36
Dart SDK version: 3.1.2 (stable) (Tue Sep 12 16:26:23 2023 +0000) on "macos_arm64"
The text was updated successfully, but these errors were encountered: