Skip to content

Upgrade module builds to PSPublishModule 3.0 - #299

Open
PrzemyslawKlys wants to merge 3 commits into
jakehildreth:mainfrom
PrzemyslawKlys:build/pspublishmodule-3
Open

PrzemyslawKlys wants to merge 3 commits into
jakehildreth:mainfrom
PrzemyslawKlys:build/pspublishmodule-3

Conversation

@PrzemyslawKlys

@PrzemyslawKlys PrzemyslawKlys commented Oct 4, 2026 •

Copy link
Copy Markdown
Contributor

Require public PSPublishModule 3.0.155 or newer for module builds. The wrapper checks installed versions, installs a compatible version when needed, and enforces the same minimum at import. Removing the unconditional update avoids a Gallery refresh on every build when the requirement is already satisfied.

Documentation generation remains disabled without its obsolete cleanup/update options. Installation, import, and build errors stop the script before it copies the generated standalone script.

Validated with the published PSGallery 3.0.155 package: the complete Script and ScriptPacked build succeeds, the ZIP contains the same bytes as the standalone script, and the generated module imports with Invoke-Locksmith in PowerShell 7.6.6 and Windows PowerShell 5.1. Bootstrap/configuration failure handling and the wrapper's behavior have existing direct proof and independent review.

The public owner release contains PSPublishModule #1024, #1026, and #1035. These provide analysis, formatter reuse, compiler compatibility, and normalization fixes in the shared engine. Existing full-build comparisons remain behind 2.0; the upgrade does not claim an overall performance win. The required owner package is published, and this PR consumes that public three-part version.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant