Skip to content

Commit 15af86a

Browse files
committed
Fix local install no clobber bug
1 parent 30ce5b5 commit 15af86a

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/code/InstallHelper.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1112,13 +1112,15 @@ private bool TryInstallToTempPath(
11121112
if (!CallAcceptLicense(pkgToInstall, moduleManifest, tempInstallPath, pkgVersion, out error))
11131113
{
11141114
_pkgNamesToInstall.RemoveAll(x => x.Equals(pkgToInstall.Name, StringComparison.InvariantCultureIgnoreCase));
1115+
Utils.EnqueueIfNotNull(errorMsgs, error);
11151116
return false;
11161117
}
11171118

11181119
// If NoClobber is specified, ensure command clobbering does not happen
11191120
if (_noClobber && DetectClobber(pkgName, parsedMetadataHashtable, out error))
11201121
{
11211122
_pkgNamesToInstall.RemoveAll(x => x.Equals(pkgName, StringComparison.InvariantCultureIgnoreCase));
1123+
Utils.EnqueueIfNotNull(errorMsgs, error);
11221124
return false;
11231125
}
11241126
}

0 commit comments

Comments
 (0)