Skip to content

Commit 73f3ad3

Browse files
authored
Merge pull request #152 from chef/chris-rock/appveyor
`Preparing modules for first use.` error message on Windows
2 parents b38f906 + 42457be commit 73f3ad3

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed

appveyor.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,5 @@
11
version: "master-{build}"
22

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

lib/train/extras/command_wrapper.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ def run(script)
137137
# especially in local mode, we cannot be sure that we get a Powershell
138138
# we may just get a `cmd`.
139139
# TODO: we may want to opt for powershell.exe -command instead of `encodeCommand`
140-
"powershell -encodedCommand #{encoded(safe_script(script))}"
140+
"powershell -NoProfile -encodedCommand #{encoded(safe_script(script))}"
141141
end
142142

143143
# suppress the progress stream from leaking to stderr

0 commit comments

Comments
 (0)