Skip to content

Publish-PSResource should create nupkg packages with lowercased name #1276

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

Merged
merged 5 commits into from
Jul 20, 2023

Conversation

anamnavi
Copy link
Member

@anamnavi anamnavi commented Jul 20, 2023

PR Summary

PR Context

PR Checklist

File.Copy(System.IO.Path.Combine(outputNupkgDir, nupkgName), System.IO.Path.Combine(DestinationPath, nupkgName));
string srcPath = System.IO.Path.Combine(outputNupkgDir, nupkgName);
// The file that gets created upon Copy should have lowercased package name.
string destPath = System.IO.Path.Combine(DestinationPath, nupkgName.ToLower());
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we care about the destination path not matching case?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't see why we would care...the file path at the destination should always have lower case, as that's what we put there and expect to see after publish. The srcPath has to match the case as it's the file name with the casing the (Windows or Unix) system sees and has to copy

Co-authored-by: Aditya Patwardhan <adityap@microsoft.com>
@anamnavi anamnavi merged commit d59abfe into PowerShell:master Jul 20, 2023
@SydneyhSmith SydneyhSmith added PR-Bug This pull request resolves an issue bug Release This pull request is part the next release labels Jul 25, 2023
@SydneyhSmith SydneyhSmith removed PR-Bug This pull request resolves an issue bug Release This pull request is part the next release labels Aug 14, 2023
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.

4 participants