-
Notifications
You must be signed in to change notification settings - Fork 229
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
pub global activate via path not working unless .dart_tool/pub/bin/<executable>
is deleted
#4409
Comments
Summary: The user reports that |
Good bot |
@bkonyi can you LMK if this fell through the cracks? This is a pretty annoying bug to run into, particularly in cases like self-hosted github actions runners where state is not wiped between runs and so implementation hangs around until you remember this is a thing. I imagine there are others scratching their heads as to why |
Yeah - this is a bug. We are using snapshots, but we don't get to invalidate them (as dart run does). |
Perhaps best would be to have the binstub for a path-activated package just call Alternatively the binstub needs to recompile (like we do in |
Just curious: This at one point did work the way I expected; did something change? |
Sorry about that. We should probably revert to having the binstubs just invoke |
The Issue
I started noticing a few weeks ago that
dart pub global activate --source="path" <path>
stopped working. To reproduce, you can:dart create -t console <name>
pubspec.yaml
dart pub global activate --source="path" <path/to/root/of/project>
name
and note resultdart create -t console
default project, updatecalculate()
to return a different integer)..dart_tool/pub/bin/<name>
directoryHere is a sample repo you can clone and use to do the above.
Expected results
Prior to this bug, re-running
dart pub global activate --source="path"
would correctly update the activated executable such that the new logic would be respected.The text was updated successfully, but these errors were encountered: