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
{{ message }}
Repository navigation
Running pub get from explicit save or the Get Packages button places result in different output #5917
If providing this information as part of reporting a bug, please review the information
below to ensure it only contains things you're comfortable posting publicly.
General info
Dart 3.12.0-edge.70d1c47aae6443b2e1d890f6f34aa50c430b845b (main) (Tue Feb 17 09:46:10 2026 -0800) on "windows_x64"
on windows / "Windows 11 Pro" 10.0 (Build 26200)
locale is pt-BR
Project info
sdk constraint: '^3.10.0'
dependencies: analysis_server_plugin, analyzer, essential_lints_annotations, logging, meta
The reason for this is that the pubspec save goes through fetchPackagesOrPrompt which has logic that determines the correct place to run pub get as the workspace root, but the button directly executes pub.get which just operates exactly where it was told.
We should better document some of these paths and then decide which options should go through which path (I'm not currently sure which is more correct, running it for the workspace, or the project - although the actual results from pub should be the same).
Activity
DanTup commentedon Mar 16, 2026
The reason for this is that the pubspec save goes through
fetchPackagesOrPromptwhich has logic that determines the correct place to runpub getas the workspace root, but the button directly executespub.getwhich just operates exactly where it was told.We should better document some of these paths and then decide which options should go through which path (I'm not currently sure which is more correct, running it for the workspace, or the project - although the actual results from
pubshould be the same).Resolve a pubspec/package to its workspace before running "pub get"
Resolve a pubspec/package to its workspace before running "pub get"
Resolve a pubspec/package to its workspace before running "pub get"