PowerShell / PowerShell/PSResourceGet

[Feature Request] Session scope for Register-PSRepository

Open
#65 4 comments 3 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

Team,
Can you please add session scope support for Register-PSRepository?

We have an internal build system that outputs PowerShell modules. Every successful build is published to an internal PSRepository (Artifactory server).
Every time we want to publish a module we have to deal with the following cases:

  • Is the repository already registered?
  • Is another repository with different name and the same SourceLocation already registered?
  • If the repository is already registered and we want to deploy on different url (PublishLocation) we have to modify the existing registration
  • Clean the build machine after build procedure (Unregister-PSRepository)
  • If 2 parallel builds are running on the same build machine at the same time this can cause conflicts (dealing with the same shared resource)

The problems described above can be avoided with Register-PSRepository operating on session level. Let me know if you have any questions.

Thanks,
Nedko

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 by tracing the existing Register-PSRepository implementation and how repository registrations are stored and scoped. Define the expected session behavior, including isolation for parallel builds and cleanup semantics, then add coverage for those cases before considering the feature complete.

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
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.