GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
GeezerVison is showing github.com — Update packaging to only package PowerShell binaries when packaging symbols by TravisEz13 · Pull Request #5145 · PowerShell/PowerShell Conversation
|
|
https://github.com/PowerShell/PowerShell/pull/5145/files?w=1 make this a lot easier to review. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| elseif(-not $IncludeSymbols.IsPresent -and $Script:Options.CrossGen) { | ||
| $crossGenCorrect = $true | ||
| } | ||
| elseif ($IncludeSymbols.IsPresent) { |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
So now it's OK to specify -IncludeSymbols while build with -Crossgen?
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Yes, the non-publish builds always keep the symbols, unaltered.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| log 'setting IncludeSymbols' | ||
| $IncludeSymbols = $PSBoundParameters['IncludeSymbols'] | ||
| } | ||
| log "$($IncludeSymbols.IsPresent):$IncludeSymbols" |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
When -IncludeSymbols is not specified, this log will print just a colon.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
I'll remove... this was troubleshooting...
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| { | ||
| $tempPath = [System.IO.Path]::GetTempPath() | ||
|
|
||
| $tempFolder = Join-Path -Path $tempPath -ChildPath ([System.IO.Path]::GetRandomFileName()) |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
How about replace these 2 lines with [System.IO.Path]::GetTempFileName()?
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
This API creates the file. I want a folder.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
I know, but you can use that name to create a folder. The two lines of script shown here are doing the same thing.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
I would have to delete the file before I can create a folder with the name.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
I see your point. Yeah, please ignore this comment.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
With minor comment
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| } | ||
| if($IncludeSymbols.IsPresent) | ||
| { | ||
| Remove-Item -Path $Source -Recurse -Force |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Maybe -ErrorAction SilentlyContinue?
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
added
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Dongbo Wang (@daxian-dbw) can you update your review? |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Approved with 2 comments.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| { | ||
| $tempPath = [System.IO.Path]::GetTempPath() | ||
|
|
||
| $tempFolder = Join-Path -Path $tempPath -ChildPath ([System.IO.Path]::GetRandomFileName()) |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
I know, but you can use that name to create a folder. The two lines of script shown here are doing the same thing.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| } | ||
| if($IncludeSymbols.IsPresent) | ||
| { | ||
| Remove-Item -Path $Source -Recurse -Force -ErrorAction SilentlyContinue |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
It would be great if you can put a comment here saying that "$Source is point to a temporary folder when -IncludeSymbols is present".
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Sorry, something went wrong.
There was an error while loading. Please reload this page.
…ymbols (PowerShell#5145) * Update packaging script to only package PowerShell binaries when creating symbols zip. disallow all other package types for symbols * remove instrumentation used for debugging during development * Add error action silently continue to cleanup for reliability. * Add comment about why folder is being deleted.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.