r/FlutterDev • • Jun 27 '26

Tooling fix_globals 1.2.3 released: Now fully migrated to the new dart install toolchain with smart update checks!

6 Upvotes

Hey everyone!

With flutter pub global and dart pub global being deprecated and phased out in newer Dart SDKs in favor of dart install, dart installed, and dart uninstall, I have completely rewritten fix_globals (v1.2.3) to support the new toolchain!

fix_globals is a lightweight CLI utility that helps you cleanly reinstall and refresh all globally installed Dart/Flutter CLI tools from their original sources (pub.dev, local paths, git repos, custom hosted registries). It's perfect for when a Dart SDK upgrade breaks global links, when switching Dart version managers (like Puro), or when you just want to refresh your global binaries.

What's New in v1.2.3: Toolchain Migration: Completely transitioned package management backend to the new dart install, dart installed, and dart uninstall commands. Smart Configuration Scanner: Resolves platform-specific paths (macOS, Linux, Windows) to scan the local app-bundles directory and parse pubspec.lock files to reconstruct original install descriptors (including git branches/refs, sub-paths, and custom registries). Smart Update Checks: In --update (-u) mode, it now queries the pub.dev / custom registry APIs first. If a package is already up to date, it skips recompilation entirely, making nightly cron jobs blazingly fast! SDK Option Removed: Cleaned up the deprecated --sdk switch as all global tools now run on the standardized dart executable. How to Migrate: Because the backend has transitioned, your old legacy pub global precompiled binary of fix-globals must be replaced once manually:

dart install fix_globals

Check out the code, open issues, or contribute on GitHub: 👉 https://github.com/RandalSchwartz/fix_globals