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
// Run this check unconditionally — `m.is_installed` is computed via
108
+
// `git ls-remote`, which itself fails when `.git` is corrupted or
109
+
// inaccessible, so relying on it here would skip the guard in exactly
110
+
// the cases we most need to fail closed.
111
+
reason:=local_git_changes_reason(m.install_path)
112
+
if reason !='' {
113
+
vpm_error('refusing to install `${m.name}`: `${m.install_path_fmted}` has local git work that would be lost (${reason}). Commit and push your changes, or remove the directory manually before retrying.')
114
+
exit(1)
115
+
}
107
116
if m.is_installed {
108
117
// Case: installed, but not an explicit version. Update instead of continuing the installation.
0 commit comments