-
Notifications
You must be signed in to change notification settings - Fork 100
Closed
Labels
Issue-BugSomething isn't workingSomething isn't working
Description
Prerequisites
- Write a descriptive title.
- Make sure you are able to repro it on the latest released version
- Search the existing issues.
Steps to reproduce
Using a private Github Packages repository with existing modules, and the latest version of PowerShellGet, downloading and saving a module errors with an invalid API Version
Save-PSResource:
Line |
125 | … Save-PSResource -Repository $repositoryName -Name $module …
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| Repository PowerShelf has unknown API Version.
This was working fine in version 3.0.19
Expected behavior
Save-PSResource does not result in an unknown API Version when using GH Packages
Actual behavior
As per Description
Error details
No response
Environment data
Tested on Windows Server 2016 and 2022:
S C:\> Get-Module PowerShellGet; $PSVersionTable
ModuleType Version PreRelease Name ExportedCommands
---------- ------- ---------- ---- ----------------
Binary 3.0.21 beta21 PowerShellGet {Find-PSResource, Get-InstalledPSResource, Get-PSResourceRepository, Get-PSScriptFileInfo…}
Key : PSVersion
Value : 7.3.2
Name : PSVersion
Key : PSEdition
Value : Core
Name : PSEdition
Key : GitCommitId
Value : 7.3.2
Name : GitCommitId
Key : OS
Value : Microsoft Windows 10.0.20348
Name : OS
Key : Platform
Value : Win32NT
Name : Platform
Key : PSCompatibleVersions
Value : {1.0, 2.0, 3.0, 4.0…}
Name : PSCompatibleVersions
Key : PSRemotingProtocolVersion
Value : 2.3
Name : PSRemotingProtocolVersion
Key : SerializationVersion
Value : 1.1.0.1
Name : SerializationVersion
Key : WSManStackVersion
Value : 3.0
Name : WSManStackVersion
### Visuals
_No response_
Metadata
Metadata
Assignees
Labels
Issue-BugSomething isn't workingSomething isn't working