Closed bsutton closed 2 years ago
Hmm i can see how this is confusing.
upgrade counts packages where the current version differs from the latest. outdated has two counts:
The 21 packages pub upgrade mentions are exactly the 21 packages listed by pub outdated (plus the two overridden), and the ones implied in "Newer versions, while available, are not mutually compatible."
@jonasfj wdyt? should we add the count of "packages not at latest" to the outdated output?
Newer versions, while available, are not mutually compatible.
Hmm, yeah, maybe we write something like:
While 21 newer versions is available, they are not mutually compatible.
I do like the "Newer versions" phrasing. I'm probably not the best to come up with a better message.
You suggest of 'while 21...' seems fine.
The main idea is to close the loop so a user can see that the two pieces align.
I have the same message when using pub upgrade/outdated (async, device_info, package_info)... But it creates a real problem in my code !
Example: Target of URI doesn't exist: 'package:device_info/device_info.dart'. Try creating the file referenced by the URI, or Try using a URI for a file that does exist.
Any idea how can I fix this ?
Thanks!
@mpoirier101 can. you give more details of what you are trying to do, and what happens? (pubspec.yaml, commands run, dart pub --version
etc)
It's been a while. I moved to a new project since... Sorry!
Michel Poirier Développeur WEB/Mobile Sainte-Agathe-des-Monts, QC [image: LinkedIn] http://ca.linkedin.com/in/michelpoirier101
On Fri, Aug 6, 2021 at 4:01 AM Sigurd Meldgaard @.***> wrote:
@mpoirier101 https://github.com/mpoirier101 can. you give more details of what you are trying to do, and what happens? (pubspec.yaml, commands run, dart pub --version etc)
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/dart-lang/pub/issues/2612#issuecomment-894080316, or unsubscribe https://github.com/notifications/unsubscribe-auth/AFCG6G5C4L5AQCOTTFPXBXLT3OJGFANCNFSM4P2PIAXQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&utm_campaign=notification-email .
Environment
2.9.0 OS Version Linux 5.4.0-42-generic #46-Ubuntu SMP Fri Jul 10 00:24:02 UTC 2020
Problem
pub upgrade is reporting a different no. of 'newer versions' than pub outdated.
pub upgrade outputs:
pub outdate outputs:
Expected behavior
I would expect that pub outdated would have listed the 21 packages or a least directly mention the count that pub get said were outdated.
e.g. 21 newer versions, while available, are not mutually compatible.
This provides a 'closing of the loop' mentally for a user when comparing these two outputs.
Actual behavior
pub outdated reported that all packages were up to date.
--trace output
pub upgrade trace
pub outdated trace