You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Since the executables would include a dart precompiled runtime. The Dart version which is running would be the one that was used to run dart pub global activate. If we ever want to re-activate a package with a different Dart SDK version, we might need some way to detect what version of the Dart SDK was used to compile the executable.
@jonasfj and @sigurdm probably know much more constraints and considerations. I'm filing an issue so that we have something to point to.
2025-06-11: Updated to introduce
dart install, see #60889 (comment) for a detailed design.We should change
dart pub globalto use AOT instead of JIT.Also, we should not let
pubneed to worry about how dart is compiled and run,dartshould be responsible for that.@jonasfj suggested that
dart pub global activateshould usedart build exe.Subsequently,
$PUB_CACHE/bin/could contain symlinks to the executables in$PUB_CACHE/global_packages/<package_name>/outputdir/<package_name>.exe.This would
dart pub global run#56044).Since the executables would include a dart precompiled runtime. The Dart version which is running would be the one that was used to run
dart pub global activate. If we ever want to re-activate a package with a different Dart SDK version, we might need some way to detect what version of the Dart SDK was used to compile the executable.@jonasfj and @sigurdm probably know much more constraints and considerations. I'm filing an issue so that we have something to point to.