You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Pull Request
## Description
Add the ability to skip the alz module version check, but retain the
other checks.
This primarily for local development and e2e tests.
## License
By submitting this pull request, I confirm that my contribution is made
under the terms of the projects associated license.
-replaceFiles # This will replace the files in the output folder with the files in the bootstrap and starter modules, so any updates are taken into account
-replaceFiles # This will replace the files in the output folder with the files in the bootstrap and starter modules, so any updates are taken into account
-replaceFiles # This will replace the files in the output folder with the files in the bootstrap and starter modules, so any updates are taken into account
186
183
@@ -196,6 +193,7 @@ Run this from the VSCode terminal for the ALZ-PowerShell-Module repository:
-replaceFiles # This will replace the files in the output folder with the files in the bootstrap and starter modules, so any updates are taken into account
210
209
@@ -222,6 +221,7 @@ Run this from the VSCode terminal for the ALZ-PowerShell-Module repository:
-replaceFiles # This will replace the files in the output folder with the files in the bootstrap and starter modules, so any updates are taken into account
236
237
@@ -248,6 +249,7 @@ Run this from the VSCode terminal for the ALZ-PowerShell-Module repository:
-replaceFiles # This will replace the files in the output folder with the files in the bootstrap and starter modules, so any updates are taken into account
if ($alzModuleCurrentVersion.Version-lt$alzModuleLatestVersion.Version) {
157
-
$checkResults+=@{
158
-
message="ALZ module is not the latest version. Your version: $($alzModuleCurrentVersion.Version), Latest version: $($alzModuleLatestVersion.Version). Please update to the latest version using 'Update-Module ALZ'."
159
-
result="Failure"
160
-
}
161
-
$hasFailure=$true
158
+
if($skipAlzModuleVersionCheck.IsPresent) {
159
+
Write-Verbose"Skipping ALZ module version check"
162
160
} else {
163
-
$checkResults+=@{
164
-
message="ALZ module is the latest version ($($alzModuleCurrentVersion.Version))."
message="ALZ module is not correctly installed. Please install the latest version using 'Install-Module ALZ'."
167
+
result="Failure"
168
+
}
169
+
$hasFailure=$true
170
+
}
171
+
$alzModuleLatestVersion=Find-Module-Name ALZ
172
+
if ($null-ne$alzModuleCurrentVersion) {
173
+
if ($alzModuleCurrentVersion.Version-lt$alzModuleLatestVersion.Version) {
174
+
$checkResults+=@{
175
+
message="ALZ module is not the latest version. Your version: $($alzModuleCurrentVersion.Version), Latest version: $($alzModuleLatestVersion.Version). Please update to the latest version using 'Update-Module ALZ'."
176
+
result="Failure"
177
+
}
178
+
$hasFailure=$true
179
+
} else {
180
+
$checkResults+=@{
181
+
message="ALZ module is the latest version ($($alzModuleCurrentVersion.Version))."
0 commit comments