Prevent ghost state errors for package reference counting #9

Open
opened 2026-06-25 09:27:00 +05:30 by sortedcord · 0 comments
Owner

If a user manually users the system package manager to remove a bootstrap managed package then the package is removed but the text file tracking the package for bootstrap stays.

This causes Bootstrap to go into a ghost state where it believes the package is installed and managed when it no longer exists.

  • Future installers will skip installing that package even though its not installed on the system
  • Uninstalling tools will falsely claim that skipping since it is required by other tools its removal will be skipped
  • Any attempts to uninstall final dependent tool will result in a silent failure or error as bootstrap tries to remove an already missing package.
If a user manually users the system package manager to remove a bootstrap managed package then the package is removed but the text file tracking the package for bootstrap stays. This causes Bootstrap to go into a `ghost state` where it believes the package is installed and managed when it no longer exists. - Future installers will skip installing that package even though its not installed on the system - Uninstalling tools will falsely claim that skipping since it is required by other tools its removal will be skipped - Any attempts to uninstall final dependent tool will result in a silent failure or error as bootstrap tries to remove an already missing package.
sortedcord added reference master 2026-06-25 09:30:11 +05:30
sortedcord changed title from Brittle Install Counter to Prevent ghost state errors for package reference counting 2026-06-25 09:30:15 +05:30
sortedcord added this to the Release v3 milestone 2026-06-26 08:45:59 +05:30
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: sortedcord/bootstrap#9