PowerShell / PowerShell/PSResourceGet

Add Scope to Repositories

Open
#616 7 comments 13 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Area-PSRepository feature_request
Dominant language
C#
Stars
576
Forks
114
Avg merge
1d 2h
Merged PRs (30d)
7

Description

Summary of the new feature / enhancement

In order to make repository registration available system-wide we should add a -Scope parameter to Register-PSRepository. This parameter will determine the file path where the repository metadata is stored and therefore determine whether all users can access the repository registration. This change will also introduce the following parameters:

  • Add a -Scope Parameter to Register-PSResourceRepository
  • Add a -Scope Parameter to Set-PSResourceRepository
  • Add a -Scope Parameter to Unregister-PSResourceRepository
  • Add a -Scope Parameter to Get-PSResourceRepository
  • Add a -RepositoryScope Parameter to Find-PSResource
  • Add a -RepositoryScope Parameter to Install-PSResource
  • Add a -RepositoryScope Parameter to Update-PSResource
  • Add a -RepositoryScope Parameter to Uninstall-PSResource
  • Add a -RepositoryScope Parameter to Publish-PSResource
  • Add a -RepositoryScope Parameter to Save-PSResource
Proposed technical implementation details (optional)

CurrentUser will remain the default behavior even with these changes.
We will not enforce uniqueness across scope, and therefore need additional parameters to indicate repository scope.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Review the repository-registration entry points named in the issue—Register-PSRepository and the PSResourceRepository cmdlets—then trace how repository metadata paths are selected. Done means all listed Scope and RepositoryScope parameters are covered, CurrentUser remains the default, and registrations can be addressed by scope without requiring cross-scope uniqueness.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp, powershell
Domain
cli, tooling
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.