Add -NoProfile to fix suppress "Preparing modules for first use." message #584
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.
Running serverspec tests in AppVeyor does not work at the moment. Every test shows a XML error with
Preparing modules for first use.
.There is a discussion at http://help.appveyor.com/discussions/problems/5170-progresspreference-not-works-always-shown-preparing-modules-for-first-use-in-stderr how to fix this.
But the workaround with
image: Previous Visual Studio 2015
in theappveyor.yml
also no longer works.See also these pull requests
Preparing modules for first use.
error message on Windows inspec/train#152The PR's showed me what is missing. I've added the
-NoProfile
option to the powershell call and it now works in AppVeyor even with the default image.I've tested the change with a small patch of the
cmd.rb
in this build https://ci.appveyor.com/project/StefanScherer/serverspec-on-appveyor/build/14