Skip to content
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

Issue with Set-DescriptionFromReadme in Update-Package #28

Open
jamie-oconnell opened this issue Jun 7, 2023 · 1 comment
Open

Issue with Set-DescriptionFromReadme in Update-Package #28

jamie-oconnell opened this issue Jun 7, 2023 · 1 comment

Comments

@jamie-oconnell
Copy link

jamie-oconnell commented Jun 7, 2023

Not sure if this is an issue with newer versions of PowerShell or if I am doing something wrong. I am running into an issue when running Update-Package. Tested in both PowerShell 5.1 and 7

Set-DescriptionFromReadme : Cannot process argument transformation on parameter 'SkipLast'. Cannot convert the
"AUPackage" value of type "AUPackage" to type "System.Int32".

This is coming from line 253 in Update-Package. If I modify Update-Package to add the parameter SkipLast 0. Or change the line to explicitly pass package with -Package the issue is resolved.

if (!$NoReadme -and (Test-Path (Join-Path $package.Path 'README.md'))) { Set-DescriptionFromReadme -Package $package -SkipFirst 2 | result }   
@AdmiringWorm
Copy link
Member

AdmiringWorm commented Jun 22, 2023

I have not seen this issue myself occurring. Could you give a link to the update.ps1 script that you are using that makes this exception occur?

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

No branches or pull requests

2 participants