🩹 [Patch]: Remove initialization step and dependency on Utilities#50
Merged
Marius Storhaug (MariusStorhaug) merged 5 commits intomainfrom Jun 1, 2025
Merged
🩹 [Patch]: Remove initialization step and dependency on Utilities#50Marius Storhaug (MariusStorhaug) merged 5 commits intomainfrom
Utilities#50Marius Storhaug (MariusStorhaug) merged 5 commits intomainfrom
Conversation
Contributor
There was a problem hiding this comment.
Pull Request Overview
This patch removes the manual initialization step and the hard dependency on the Utilities module from the PowerShell publish script and associated workflow.
- Dropped the
#Requiresdirective forUtilitiesand related modules inPublish-PSModule.ps1 - Removed the “Initialize environment” step from the GitHub Actions workflow
Reviewed Changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| scripts/helpers/Publish-PSModule.ps1 | Removed #Requires -Modules Utilities,… directive |
| .github/workflows/Action-Test.yml | Omitted the environment initialization step |
Comments suppressed due to low confidence (2)
scripts/helpers/Publish-PSModule.ps1:13
- Removing the
#Requiresdirective skips built-in dependency validation. Consider documenting or ensuring dependencies are loaded via Import-Module or a manifest to maintain clarity and fail-fast behavior.
#Requires -Modules Utilities, PowerShellGet, Microsoft.PowerShell.PSResourceGet, GitHub, PSSemVer
.github/workflows/Action-Test.yml:26
- Dropping the environment initialization step may lead to inconsistent test runs. Ensure any required setup (module paths, credentials) is handled elsewhere or add comments explaining where initialization occurs now.
- - name: Initialize environment
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.
Description
Remove the initialization step and dependency on
Utilities, the Install-PSModuleHelpers takes over.Type of change
Checklist