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

checkver.ps1 does not work on Powershell 6.1.0 #2591

Closed
se35710 opened this issue Sep 14, 2018 · 0 comments
Closed

checkver.ps1 does not work on Powershell 6.1.0 #2591

se35710 opened this issue Sep 14, 2018 · 0 comments

Comments

@se35710
Copy link
Contributor

se35710 commented Sep 14, 2018

https://github.com/lukesampson/scoop/blob/bc927a53f96137b501c154937b9dc2819a34eb67/bin/checkver.ps1#L34-L39

Get-ChildItem "." "*.json" | ForEach-Object { echo "$_" } returns filenames on older pwsh, but on Powershell 6.1.0 full path is returned:

Linux:

PS /home/user/scoop-extras> Get-ChildItem "." "*.json" | ForEach-Object { echo "$_" }
/home/user/scoop-extras/advancedrenamer.json
/home/user/scoop-extras/aida64extreme.json
[...]

Windows:

PS C:\Users\user\scoop-extras> Get-ChildItem "." "*.json" | ForEach-Object { echo "$_" }
C:\Users\user\scoop-extras\advancedrenamer.json
C:\Users\user\scoop-extras\aida64extreme.json
[...]

Because of this manifest loading fails, and no updates are detected.

@se35710 se35710 changed the title checkver.ps1 does not work on Powershell 6.1.0 checkver.ps1 does not work on Powershell 6.1.0 Sep 14, 2018
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

1 participant