dart upgrade command

1,085 views
Skip to first unread message

Shlomo Belleli

unread,
Oct 15, 2021, 6:20:08 AM10/15/21
to Dart Misc
Hi

Maybe Google can consider adding to the Dart command the option "upgrade" and by that option, it will be easier to upgrade the Dart SDK Similar to what already exists in Flutter.
Shlomo

Chris Norman

unread,
Oct 15, 2021, 7:47:59 AM10/15/21
to mi...@dartlang.org
Hi,
That's a great idea, although I suspect it might confuse some people who are looking for `dart pub upgrade`, and end up upgrading Dart instead.

Take care,

Chris Norman



--
For more ways to connect visit https://dart.dev/community
---
You received this message because you are subscribed to the Google Groups "Dart Misc" group.
To unsubscribe from this group and stop receiving emails from it, send an email to misc+uns...@dartlang.org.
To view this discussion on the web visit https://groups.google.com/a/dartlang.org/d/msgid/misc/d6b2d4e9-6c1d-47b8-8f00-67e51d74a131n%40dartlang.org.

Jonathan Rezende

unread,
Oct 15, 2021, 8:01:04 AM10/15/21
to mi...@dartlang.org

Shlomo Belleli

unread,
Oct 15, 2021, 9:14:51 AM10/15/21
to Dart Misc, Jonathan Rezende
Hi
Chris is right, it might  confuse
Jonathan is taking it to a better place with "upgrade sdk"
I will suggest reversing the order of the letters to "sdk upgrade"
This way it will fit the new "dart pub upgrade" syntax
And now for our case, it will be "dart sdk upgrade"
No confusion with this because the "sdk" is the first verb in the command 
Shlomo

Alexander Thomas

unread,
Oct 18, 2021, 4:27:42 AM10/18/21
to mi...@dartlang.org, Jonathan Rezende
Hi!

Have you tried the Dart distributions coming from the package managers? We do support a Debian repo, a Homebrew tap, Docker containers as well as Chocolatey. I'd be curious to learn what advantage a `dart upgrade` would give you over, say, `brew upgrade dart`. Flutter and Dart's distribution model is quite different (Flutter is basically a Git checkout with tooling to fetch all sorts of dependencies whereas Dart is distributed as a self-contained zip file).

-Alex

Shlomo Belleli

unread,
Oct 18, 2021, 7:32:32 AM10/18/21
to Dart Misc, athom, Jonathan Rezende
Hi
I am always looking for a "simple" path for any work I am doing
These days, so many tools/options most of them really bother more than useful
Simple tasks become too heavy and much more complicated than needed
What is more simple from opening cmd.exe and write "dart SDK upgrade"  and get the job done in seconds.
A one that is upgrading Flutter or Dart doesn't care about any "distribution model " this is not his problem it is the SDK team issue.
Our job is to build apps, this is why simplicity is an important factor and time matters.
I tried to join Chocolatey, too many screens, options, links, emails, and a full of useless information I need to face for only install Dart SDK?  why do I need it? No one needs it.
Ha, and I need to remember my account details! for any tool provider. This is too heavy for me.
I really think that the "dart SDK upgrade" in the cmd.exe is much more available and accessible?
Shlomo

John McMahon

unread,
Jan 19, 2022, 9:18:35 AM1/19/22
to Dart Misc, shlomo....@gmail.com, athom, Jonathan Rezende
While it's true Flutter has a different distribution model, Dart has changed its command line interface to more resemble Flutter's.

The "dart pub upgrade" was modeled after Flutter. Why would we end there when Flutter itself has a "flutter upgrade" path?

By the time Dart is installed, Dart could reasonably know where it's installed. This would tie in well with the "dart migrate" command.

Reply all
Reply to author
Forward
0 new messages