PSGitHub icon indicating copy to clipboard operation
PSGitHub copied to clipboard

PowerShell 5 support broken

Open indented-automation opened this issue 5 years ago • 1 comments

PowerShell 5.1 on Windows 10. PSGitHub 0.15.179

The module uses the FollowRelLink of Invoke-WebRequest / Invoke-RestMethod. This does not exist prior to PowerShell 6.

Should you wish to retain support for PS 5, I wrote an implementation of this as an example. You can find that here:

https://github.com/PacktPublishing/Mastering-Windows-PowerShell-Scripting-Third-Edition/blob/25406afc2395e0e5d68e3f26219a4f42b098baa6/Chapter13/2.2.4_Invoke-WebRequest_FollowRelLink.ps1

Thanks!

indented-automation avatar Oct 03 '19 16:10 indented-automation

Looks good, wanna do a PR?

felixfbecker avatar Oct 15 '19 17:10 felixfbecker