Skip to content

Add NuGet server.#147

Open
Adam Driscoll (adamdriscoll) wants to merge 10 commits into
mainfrom
nuget
Open

Add NuGet server.#147
Adam Driscoll (adamdriscoll) wants to merge 10 commits into
mainfrom
nuget

Conversation

@adamdriscoll

@adamdriscoll Adam Driscoll (adamdriscoll) commented Jun 17, 2026

Copy link
Copy Markdown
Contributor

This pull request introduces a new NuGet V3 package feed module for PowerShell Universal, providing endpoints for package publishing, search, retrieval, and management, as well as on-disk storage and metadata generation. It includes a PowerShell module manifest, published folder setup, endpoint definitions, and a comprehensive README.

NuGet V3 Feed Implementation

  • Added a new PowerShell module manifest (PowerShellUniversal.NuGet.psd1) defining exported functions for managing NuGet packages, metadata, and repository operations.
  • Implemented published folder setup in publishedFolders.ps1 to ensure required directories for the flat container and registration metadata are created and exposed as static folders.
  • Defined multiple NuGet-compatible API endpoints in endpoints.ps1 for service index, package search, autocomplete, flat container, registration, publishing, unlisting/relisting, catalog listing, and hard-deletion. Endpoints include authentication and role-based access where appropriate.

Documentation

  • Added a detailed README.md describing all endpoints, configuration options, publishing instructions, and maintenance commands for the new NuGet feed module.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds a NuGet v3 feed implementation to the PowerShell Universal Gallery repo, including a PowerShell module that manages on-disk package storage and metadata generation, plus PSU endpoint and published-folder wiring and accompanying documentation.

Changes:

  • Added PowerShellUniversal.NuGet module (psm1 + manifest) implementing catalog storage, metadata generation, and search/autocomplete behaviors.
  • Added PSU endpoint definitions and published-folder mounts to expose NuGet-compatible routes.
  • Added a README documenting endpoints, configuration, publishing, and maintenance.

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 9 comments.

Show a summary per file
File Description
APIs/NuGet/README.md Documents feed endpoints, configuration, publishing workflow, and maintenance commands.
APIs/NuGet/PowerShellUniversal.NuGet.psm1 Implements repository storage layout, catalog I/O, metadata generation, and search/autocomplete logic.
APIs/NuGet/PowerShellUniversal.NuGet.psd1 Module manifest exporting the public functions for the NuGet feed module.
APIs/NuGet/.universal/publishedFolders.ps1 Creates and publishes static folders for flat-container and registration metadata.
APIs/NuGet/.universal/endpoints.ps1 Defines NuGet-compatible PSU API endpoints (index, search, autocomplete, flat container, registration, publish, unlist/relist, delete).

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread APIs/NuGet/PowerShellUniversal.NuGet.psm1 Outdated
Comment thread APIs/NuGet/PowerShellUniversal.NuGet.psm1 Outdated
Comment thread APIs/NuGet/PowerShellUniversal.NuGet.psm1 Outdated
Comment thread APIs/NuGet/PowerShellUniversal.NuGet.psm1 Outdated
Comment thread APIs/NuGet/.universal/publishedFolders.ps1 Outdated
Comment thread APIs/NuGet/.universal/endpoints.ps1 Outdated
Comment thread APIs/NuGet/.universal/endpoints.ps1 Outdated
Comment thread APIs/NuGet/PowerShellUniversal.NuGet.psm1 Outdated
Comment thread APIs/NuGet/.universal/publishedFolders.ps1 Outdated
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants