Do not set source for CoreDisTools. (dotnet/coreclr#25991)
authorSergey Andreenko <seandree@microsoft.com>
Fri, 2 Aug 2019 23:27:12 +0000 (16:27 -0700)
committerGitHub <noreply@github.com>
Fri, 2 Aug 2019 23:27:12 +0000 (16:27 -0700)
We do not set it when we restore other packages so unify that.

dotnet -restore will search for nuget.config and find https://github.com/dotnet/coreclr/blob/master/NuGet.config that contains https://dotnet.myget.org/F/dotnet-core/api/v3/index.json that is needed here.

Commit migrated from https://github.com/dotnet/coreclr/commit/69649624d71a4d7ebcae2ce5420508e5fe5ba7f2

src/coreclr/tests/setup-stress-dependencies.cmd
src/coreclr/tests/setup-stress-dependencies.sh

index 4720b3c..49ee0e2 100644 (file)
@@ -79,7 +79,7 @@ REM ============================================================================
 
 REM Download the package
 echo Downloading CoreDisTools package
-set DOTNETCMD="%__DotNetCmd%" restore "%__CsprojPath%" --source https://dotnet.myget.org/F/dotnet-core/ --packages "%__PackageDir%"
+set DOTNETCMD="%__DotNetCmd%" restore "%__CsprojPath%" --packages "%__PackageDir%"
 echo %DOTNETCMD%
 call %DOTNETCMD%
 if errorlevel 1 goto Fail
index a6465a9..1fb26b5 100755 (executable)
@@ -177,7 +177,7 @@ fi
 
 # Download the package
 echo Downloading CoreDisTools package
-bash -c -x "$dotnet restore $csprojPath --source https://dotnet.myget.org/F/dotnet-core/ --packages $packageDir"
+bash -c -x "$dotnet restore $csprojPath --packages $packageDir"
 if [ $? -ne 0 ]
 then
     exit_with_error 1 "Failed to restore the package"