PowerShell / PowerShell/PSResourceGet

Ability to register resource repository without it being used unless explicitly with `-Repository`

Open
#1,773 0 comments 0 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

For testing it'd be great with the ability to Register-PSResourceRepository without it being used by Find-PSResource (and other cmdlets) unless explicitly chosen with -Repository.

Then we can have various test repositorories registered that might not work, but don't break day to day operations with PSResourceGet.

Proposed technical implementation details (optional)
  • Add a priority that tells PSResourceGet not to use it by default. -1? 101?
  • Add an optional parameter switch: -NonDefault, -Testing?
  • Add an optional parameter string -Type that defaults to 'Default' with the option of 'Explicit'?

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

Start with the Register-PSResourceRepository and Find-PSResource entry points to understand how registered repositories are selected by default versus with -Repository. Define the repository state or parameter behavior that should support explicit-only repositories, then verify that normal discovery ignores them while explicit selection still uses them.

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
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.