Running flutter upgrade on a repo that you just cloned and ran flutter doctor and flutter analyze on should be a no-op. However, it's not, because we run buildUnlinkedForPackages when you run flutter upgrade, which does a bunch of pub gets in repo packages.
Either it's important to run this, in which case we should run it any time it's needed, or it's not, in which case we shouldn't run it when you upgrade.