From 3fa01aca834ea55bdaae01ab4eeba1f0121c4cc3 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sat, 7 Feb 2026 22:54:11 +0000 Subject: [PATCH 1/2] Initial plan From 66647ac2bafe089a2802aadc45263f6b5f5845ee Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sat, 7 Feb 2026 22:56:55 +0000 Subject: [PATCH 2/2] Scope PSModulePath modification to publish phase only Restore original PSModulePath before install/import verification to ensure Import-Module resolves the installed package from LocalRepo, not the staged build output from artifacts/modules. This fixes the validation gate to properly catch broken or missing dependency wiring in published packages. Co-authored-by: blindzero <13959569+blindzero@users.noreply.github.com> --- .github/workflows/release.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index a3d28547..98f45405 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -280,6 +280,8 @@ jobs: } # Ensure required modules are discoverable during Test-ModuleManifest/Publish-Module. + # Save original PSModulePath to restore before install/import verification. + $originalPSModulePath = $env:PSModulePath $pathSeparator = [System.IO.Path]::PathSeparator $modulePathEntries = $env:PSModulePath -split [regex]::Escape($pathSeparator) if ($modulePathEntries -notcontains $modulesPath) { @@ -309,6 +311,10 @@ jobs: Write-Host " ✓ Published $moduleName" } + # Restore original PSModulePath before install/import verification + # to ensure Import-Module resolves the installed package, not the staged build. + $env:PSModulePath = $originalPSModulePath + # Test that IdLE can be installed and imports correctly Write-Host "`nInstalling IdLE from LocalRepo..." Install-Module -Name 'IdLE' -Repository 'LocalRepo' -Scope CurrentUser -Force -AllowClobber -ErrorAction Stop