Skip to content

Commit

Permalink
Merge pull request #152 from chef/chris-rock/appveyor
Browse files Browse the repository at this point in the history
`Preparing modules for first use.` error message on Windows
  • Loading branch information
chris-rock authored Sep 20, 2016
2 parents b38f906 + 42457be commit 73f3ad3
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
4 changes: 0 additions & 4 deletions appveyor.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
version: "master-{build}"

# fix for retrieving progress information for local execution
# see: http://help.appveyor.com/discussions/problems/5170-progresspreference-not-works-always-shown-preparing-modules-for-first-use-in-stderr
image: Previous Visual Studio 2015

platform:
- x64

Expand Down
2 changes: 1 addition & 1 deletion lib/train/extras/command_wrapper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ def run(script)
# especially in local mode, we cannot be sure that we get a Powershell
# we may just get a `cmd`.
# TODO: we may want to opt for powershell.exe -command instead of `encodeCommand`
"powershell -encodedCommand #{encoded(safe_script(script))}"
"powershell -NoProfile -encodedCommand #{encoded(safe_script(script))}"
end

# suppress the progress stream from leaking to stderr
Expand Down

0 comments on commit 73f3ad3

Please sign in to comment.