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

Update/Add PSResourceGet module (PowerShellGet replacement) #8785

Closed
11 tasks done
hmmwhatsthisdo opened this issue Nov 14, 2023 · 2 comments
Closed
11 tasks done

Update/Add PSResourceGet module (PowerShellGet replacement) #8785

hmmwhatsthisdo opened this issue Nov 14, 2023 · 2 comments

Comments

@hmmwhatsthisdo
Copy link

Tool name

PSResourceGet PowerShell module (PowerShellGet replacement)

Tool license

MIT License

Add or update?

  • Add
  • Update

Desired version

1.0.1 (current latest)

Approximate size

5 MB

Brief description of tool

PSResourceGet is the successor to PowerShellGet (PowerShell's built-in package manager). PSResourceGet was released to general availability early last month - this module is expected to be the new package manager for PowerShell (both 7.x+ and Windows PowerShell 5.1) in the future.

The older PowerShellGet module had significant supportability challenges, so a decision was made to release PSResourceGet under a new name and with a fundamentally different command structure. The two modules are being handled separately, with a planned update to PowerShellGet serving as a compatibility shim during the transition period. More details are available here.

URL for tool's homepage

https://github.com/PowerShell/PSResourceGet

Provide a basic test case to validate the tool's functionality.

# Does the module exist in $env:PSModulePath?
Get-Module Microsoft.PowerShell.PSResourceGet -ListAvailable

# Can we probe PSGallery for a well-known package? (assumes internet access/line-of-sight to powershellgallery.com from test environment)
Find-PSResource -Name Az -Type Module

Platforms where you need the tool

  • Azure DevOps
  • GitHub Actions

Runner images where you need the tool

  • Ubuntu 20.04
  • Ubuntu 22.04
  • macOS 11
  • macOS 12
  • macOS 13
  • Windows Server 2019
  • Windows Server 2022

Can this tool be installed during the build?

# Install PSResourceGet module from PSGallery
# Assumes PowerShellGet v2.x and PackageManagement modules are already present
Install-Module Microsoft.PowerShell.PSResourceGet

Tool installation time in runtime

Variable depending on the number of packages installed, downstream NuGet feed config, etc.

Are you willing to submit a PR?

Yes

@Alexey-Ayupov
Copy link
Collaborator

Hello @hmmwhatsthisdo. We do not have plans to add Microsoft.PowerShell.PSResourceGet to the runner images due to maintenance concerns and small installation time. This module can be added after PowerShellGet module deprecation.

@wsmelton
Copy link

wsmelton commented Dec 6, 2023

If the Powershell version gets updated to the latest LTS release (v4) you will get PSResourceGet automatically. It is pre-packaged with v4 of PowerShell.

ref: #8847

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants