Repository navigation
Upgrade module builds to PSPublishModule 3.0 - #299
Open
PrzemyslawKlys wants to merge 3 commits into
Open
PrzemyslawKlys wants to merge 3 commits into
PrzemyslawKlys wants to merge 3 commits into
Conversation
This was referenced Oct 4, 2026
Merged
This branch has not been deployed
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.
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.