Skip to content

Reinstall plugins on clime init when the source script URL changes#15

Open
Lance726 wants to merge 1 commit intogit-hulk:masterfrom
Lance726:init-detect-script-drift
Open

Reinstall plugins on clime init when the source script URL changes#15
Lance726 wants to merge 1 commit intogit-hulk:masterfrom
Lance726:init-detect-script-drift

Conversation

@Lance726
Copy link
Copy Markdown

Problem

clime init skips any plugin already in the local manifest. When a team manifest publishes a new install.sh URL, already-installed users never pick up the change — the only fix today is a manual remove + reinstall.

Fix

For script-type plugins, compare the source-declared script: URL with the local manifest's source field. If they differ, reinstall and refresh the local field. New plugins install as before; unchanged ones still skip.

Drift detection is limited to script-type plugins for this PR. brew/npm/github involve system-shared state and need explicit user action to switch source.

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.

1 participant