PowerShell / PowerShell/PSResourceGet

Local cache for `.nupkg` like other package managers

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

It could be useful with a local cache of downloaded .nupkg files, like other package managers does.

Having this would make it feasible to implement other fatures too, like:

Proposed technical implementation details (optional)
  • Make it optional.
  • Make cache invalidation / deletion / purge logic configurable.
    • Keep to latest version of each script/module?
    • Delete cached items after x days?
  • Could help with cache in CI/CD too, like in GitHub actions, if Install-Package did not delete the .nupkg files it downloaded.
  • Add some cmdlets to manage cache
    • Get current cached items and total size.
    • Clear cache.

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 reviewing the proposed local .nupkg cache behavior and the linked PSResourceGet issue 1646. Compare the referenced Bun, Chocolatey, and Scoop cache approaches, then define the optional caching, invalidation, purge, CI/CD behavior, and cache-management cmdlets needed for a complete design.

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.