Skip to content

Commit 1e34431

Browse files
committedDec 21, 2017
build(nuget): use -DisableParallelProcessing to try to fix hangs
Since I introduced a new version of nuget (required by some nuget packages; see 9804b65), the build hangs usually in gitlab-ci (maybe because of some underlying Mono problem with HTTP requests, that hopefully is fixed in a new version... maybe fixed by [1]?). As a workaround, I'm testing now this flag to see if it improves things. See the docs here: https://docs.microsoft.com/en-us/nuget/tools/cli-ref-restore [1] mono/mono@cd09ddb
1 parent cb70f89 commit 1e34431

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎NuGet.Restore.targets

+2-2
Original file line numberDiff line numberDiff line change
@@ -76,12 +76,12 @@
7676

7777
<Message Importance="$(RestoreLoggingImportance)" Text="Restoring $(_RestoreSolution)..." />
7878

79-
<Exec Command='$(Mono) "$(_NuGet)" $(_RestoreCommand) "$(_RestoreSolution)" $(_RestoreArgs)'
79+
<Exec Command='$(Mono) "$(_NuGet)" $(_RestoreCommand) "$(_RestoreSolution)" -DisableParallelProcessing $(_RestoreArgs)'
8080
ContinueOnError="$(ContinueOnRestoreError)"
8181
Condition="'$(_RestoreOutput)' == ''"
8282
WorkingDirectory="$(_RestoreDir)" />
8383

84-
<Exec Command='$(Mono) "$(_NuGet)" $(_RestoreCommand) "$(_RestoreSolution)" -OutputDirectory "$(_RestoreOutput)" $(_RestoreArgs)'
84+
<Exec Command='$(Mono) "$(_NuGet)" $(_RestoreCommand) "$(_RestoreSolution)" -DisableParallelProcessing -OutputDirectory "$(_RestoreOutput)" $(_RestoreArgs)'
8585
ContinueOnError="$(ContinueOnRestoreError)"
8686
Condition="'$(_RestoreOutput)' != ''"
8787
WorkingDirectory="$(_RestoreDir)" />

0 commit comments

Comments
 (0)