Repository navigation
import-module incorrectly reporting a loaded module was not found - #5238
Conversation
missing break after module was loaded successfully so loop continues but module isn't "found" and thus reports error even though loaded
| @@ -27,6 +39,11 @@ | |||
| { $script:module = Import-Module $moduleName -PassThru } | Should Not Throw | |||
There was a problem hiding this comment.
Please add -ErrorAction Stop as a failed load is not a terminating error
There was a problem hiding this comment.
Will add
|
Shall we add the '[Feature]' tag to run all tests? |
|
Dongbo Wang (@daxian-dbw) it wouldn't hurt to run [feature] tests, will update |
Paul Higinbotham (PaulHigin)
left a comment
There was a problem hiding this comment.
LGTM
|
Dongbo Wang (@daxian-dbw) looks like for mac Travis-CI installed beta.8, but the scripts tried to start pwsh. Did we publish beta.9 to homebrew already? |
|
Steve Lee (@SteveL-MSFT) The PR to update powershell.beta.9 in homebrew is here: Homebrew/homebrew-cask#40043 Aditya Patwardhan (@adityapatwardhan) submitted the PR early this morning, but it hasn't been merged yet. |
|
Dongbo Wang (@daxian-dbw) thanks, I guess we'll just wait for that to merged then I'll restart the macOS job |
|
Steve Lee (@SteveL-MSFT) restarted the Travis-CI macOS job. The homebrew PR is merged. |
|
James Truher (@JamesWTruher) can you re-review? |
…rShell#5238) Missed a 'break' statement after the module was loaded successfully, so the loop continues when it shouldn't.
missing break after module was loaded successfully so loop continues
but module isn't "found" and thus reports error even though loaded
Fix #5232