feat(build): add InstallLocal psake task for local pre-release installs#180
Merged
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
This PR extends PSDepend’s developer workflow by adding a local pre-release install task to the build, and it also introduces a new PSResourceGet dependency provider (plus tests) to support PSResourceGet-based module installs alongside the existing PowerShellGet v2 provider.
Changes:
- Added a psake
InstallLocaltask that stamps a prerelease label into the staged manifest and copies the staged module into a version-labeled folder under the user module path. - Added a new
PSResourceGetdependency type implementation (PSDependScripts/PSResourceGet.ps1) and a dedicated Pester test suite. - Updated the module manifest PSData metadata (ReleaseNotes URL +
Prereleasekey) and refreshed VS Code settings/debug profiles.
Reviewed changes
Copilot reviewed 9 out of 9 changed files in this pull request and generated 4 comments.
Show a summary per file
| File | Description |
|---|---|
| Tests/PSResourceGet.Type.Tests.ps1 | Adds Pester coverage for the new PSResourceGet provider contract/behavior. |
| PSDepend/PSDependScripts/PSResourceGet.ps1 | New provider script implementing install/save/import/test flows via PSResourceGet. |
| PSDepend/PSDependMap.psd1 | Registers the new PSResourceGet dependency type and updates map formatting/description text. |
| PSDepend/PSDepend.psd1 | Adds PSData Prerelease field and points ReleaseNotes to CHANGELOG; reformats export list. |
| psakeFile.ps1 | Adds InstallLocal task for staging + prerelease stamping + local install copy. |
| .vscode/settings.json | Adds editor defaults and search excludes (notably Output/**). |
| .vscode/launch.json | Adds new debug launch profiles intended for running tests and loading the module. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Adds a new `InstallLocal` task to psakeFile.ps1 that stages the module
and installs it to the CurrentUser PS 7 modules path with a prerelease
label derived from the short git commit hash, so it does not shadow the
stable PSGallery version. The label can be overridden via psake
-Properties @{PreReleaseLabel='rc1'}.
Also adds `Prerelease = ''` to PSDepend.psd1 PSData (required for
Update-Metadata to stamp the staged manifest) and tidies .vscode config
with debug launch profiles and editor formatting defaults.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2b22c94 to
6c68073
Compare
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com> Signed-off-by: Gilbert Sanchez <me@gilbertsanchez.com>
3 tasks
HeyItsGilbert
added a commit
that referenced
this pull request
May 21, 2026
## Summary - Adds a `CHANGELOG.md` at the repo root, reconstructed retroactively from the git history of `PSDepend/PSDepend.psd1`. - Covers every published version from **0.0.1 (2016-07-29)** through **0.3.0 (2018-09-20)**, plus an **[Unreleased]** section capturing the large queue of work merged since 0.3.0 (PSResourceGet, Chocolatey, Pester v5 migration, build modernization, numerous bug fixes — PRs #102 through #180). - Follows [Keep a Changelog](https://keepachangelog.com/en/1.1.0/) with Added / Changed / Fixed groupings and SemVer headings. - Resolves the dangling reference in `PSDepend/PSDepend.psd1` (line 109), where `PrivateData.PSData.ReleaseNotes` already points at `CHANGELOG.md` on `main` but the file did not exist. ## Why retroactive The module has shipped 8 versions but never carried a changelog. Reconstructing it now gives a single place to read project history, makes the existing `ReleaseNotes` link resolve, and creates a landing spot for future releases to append to instead of starting from scratch. ## Test plan - [x] Verify `CHANGELOG.md` renders correctly on GitHub. - [x] Confirm the URL in `PSDepend/PSDepend.psd1` line 109 (`ReleaseNotes`) now resolves once merged to `main`. - [x] Spot-check a couple of historical entries against `git log` to confirm accuracy. 🤖 Generated with [Claude Code](https://claude.com/claude-code) --------- Co-authored-by: Claude Opus 4.7 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
InstallLocalpsake task that stages the module and copies it toDocuments\PowerShell\Modules\PSDepend\<version>-<label>\so the dev build can be tested locally without shadowing the stable PSGallery versionpre-<git-short-hash>and can be overridden:.\build.ps1 InstallLocal -Properties @{PreReleaseLabel='rc1'}Prerelease = ''toPSDepend.psd1PSData — required forUpdate-Metadatato stamp the staged manifest; empty string = stable for normal releases.vscodeconfig: adds debug launch profiles and editor formatting defaultsTest plan
.\build.ps1 InstallLocalcompletes without error and reports the install pathGet-Module PSDepend -ListAvailableshows the new pre-release entry alongside any stable version.\build.ps1 InstallLocal -Properties @{PreReleaseLabel='rc1'}installs as0.3.0-rc1.\build.ps1 Teststill passes (no regressions from manifest change)🤖 Generated with Claude Code