-
Notifications
You must be signed in to change notification settings - Fork 96
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
Add method to extract nupkg to directory #1456
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Look at the CodeQL error.
Slight correction to the description: GitHub Packages repository does not modify the nupkg files on it's own, but a certain popular tool does (wich results in a duplicated If you publish a valid nupkg to GitHub Packages directly, e.g. using |
PR Summary
Some repositories (namely GitHub Packages) add an extra
_rels\rels
file to the .nupkgs.System.IO.Compression.ZipFile.ExtractToDirectory
does not have anoverwrite
parameter for net472, so this method was throwing an exception every time it came across the second_rels\rels
.This PR opens the .nupkg and runs
ExtractToFile
(which does have anoverwrite
parameter) on each item so that no exception gets thrown. Note that anything under_rels
by default gets thrown out by PSResourceGet, so overwriting this file is not an issue. There should be no other duplicate files.PR Context
Resolves #1433
PR Checklist
.h
,.cpp
,.cs
,.ps1
and.psm1
files have the correct copyright headerWIP:
or[ WIP ]
to the beginning of the title (theWIP
bot will keep its status check atPending
while the prefix is present) and remove the prefix when the PR is ready.