Skip to content

Fix 1811 by removing ToLower() from temp install path #1842

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/code/InstallHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -454,7 +454,7 @@ private void MoveFilesIntoInstallPath(

// If script, just move the files over, if module, move the version directory over
var tempModuleVersionDir = (!isModule || isLocalRepo) ? dirNameVersion
: Path.Combine(tempInstallPath, pkgInfo.Name.ToLower(), newVersion);
: Path.Combine(tempInstallPath, pkgInfo.Name, newVersion);

_cmdletPassedIn.WriteVerbose($"Installation source path is: '{tempModuleVersionDir}'");
_cmdletPassedIn.WriteVerbose($"Installation destination path is: '{finalModuleVersionDir}'");
Expand Down Expand Up @@ -984,7 +984,7 @@ private bool TryInstallToTempPath(

// Expand the zip file
var pkgVersion = pkgToInstall.Version.ToString();
var tempDirNameVersion = Path.Combine(tempInstallPath, pkgName.ToLower(), pkgVersion);
var tempDirNameVersion = Path.Combine(tempInstallPath, pkgName, pkgVersion);
Directory.CreateDirectory(tempDirNameVersion);

if (!TryExtractToDirectory(pathToFile, tempDirNameVersion, out error))
Expand Down