Skip to content

global: recreate binstubs owned by inactive packages - #4860

Open
aikins01 wants to merge 1 commit into
dart-lang:mainfrom
aikins01:global/recreate-faulty-binstubs
Open

global: recreate binstubs owned by inactive packages#4860
aikins01 wants to merge 1 commit into
dart-lang:mainfrom
aikins01:global/recreate-faulty-binstubs

Conversation

@aikins01

Copy link
Copy Markdown
Contributor

Faulty historical binstubs can name an inactive package, such as pub, as their owner. A later dart pub global activate then treats that stale metadata as a command collision and requires --overwrite.

This treats binstubs attributed to packages without an active global package lockfile as orphaned and recreates them. Binstubs owned by active packages keep the existing collision protection.

Fixes #4235.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Improve handling of faulty binstubs

1 participant