From 52b92ff310885b9276df13a7ecd25826d26f42b0 Mon Sep 17 00:00:00 2001 From: ilia-shipitsin <125650415+ilia-shipitsin@users.noreply.github.com> Date: Wed, 26 Jul 2023 17:41:57 +0200 Subject: [PATCH] [macos] supress nonsignificant powershell warning (#7985) veertu-anka-vm-clone.template: Installing Xcode versions... veertu-anka-vm-clone.template: WARNING: The names of some imported commands from the module 'Xcode.Installer' include unapproved verbs that might make them less discoverable. To find the commands with unapproved verbs, run the Import-Module command again with the Verbose parameter. For a list of approved verbs, type Get-Verb. veertu-anka-vm-clone.template: WARNING: The names of some imported commands from the module 'Xcode.Installer' include unapproved verbs that might make them less discoverable. To find the commands with unapproved verbs, run the Import-Module command again with the Verbose parameter. For a list of approved verbs, type Get-Verb. veertu-anka-vm-clone.template: WARNING: The names of some imported commands from the module 'Xcode.Installer' include unapproved verbs that might make them less discoverable. To find the commands with unapproved verbs, run the Import-Module command again with the Verbose parameter. For a list of approved verbs, type Get-Verb. veertu-anka-vm-clone.template: WARNING: The names of some imported commands from the module 'Xcode.Installer' include unapproved verbs that might make them less discoverable. To find the commands with unapproved verbs, run the Import-Module command again with the Verbose parameter. For a list of approved verbs, type Get-Verb. veertu-anka-vm-clone.template: WARNING: The names of some imported commands from the module 'Xcode.Installer' include unapproved verbs that might make them less discoverable. To find the commands with unapproved verbs, run the Import-Module command again with the Verbose parameter. For a list of approved verbs, type Get-Verb. --- images/macos/provision/core/xcode.ps1 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/images/macos/provision/core/xcode.ps1 b/images/macos/provision/core/xcode.ps1 index b94ca98c..4836596a 100644 --- a/images/macos/provision/core/xcode.ps1 +++ b/images/macos/provision/core/xcode.ps1 @@ -1,7 +1,7 @@ $ErrorActionPreference = "Stop" Import-Module "$env:HOME/image-generation/helpers/Common.Helpers.psm1" -Import-Module "$env:HOME/image-generation/helpers/Xcode.Installer.psm1" +Import-Module "$env:HOME/image-generation/helpers/Xcode.Installer.psm1" -DisableNameChecking # Spaceship Apple ID login fails due to Apple ID prompting to be upgraded to 2FA. # https://github.com/fastlane/fastlane/pull/18116 @@ -19,7 +19,7 @@ Write-Host "Installing Xcode versions..." $xcodeVersions | ForEach-Object -ThrottleLimit $threadCount -Parallel { $ErrorActionPreference = "Stop" Import-Module "$env:HOME/image-generation/helpers/Common.Helpers.psm1" - Import-Module "$env:HOME/image-generation/helpers/Xcode.Installer.psm1" + Import-Module "$env:HOME/image-generation/helpers/Xcode.Installer.psm1" -DisableNameChecking Install-XcodeVersion -Version $_.version -LinkTo $_.link Confirm-XcodeIntegrity -Version $_.link