Skip to content
This repository was archived by the owner on Jun 20, 2023. It is now read-only.

Commit a6f4f9e

Browse files
committed
Fix bootstrapper download link
Also pin nuget.exe version
1 parent f55d996 commit a6f4f9e

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

build.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ if ((Test-Path $PSScriptRoot) -and !(Test-Path $TOOLS_DIR)) {
8282
# Make sure that packages.config exist.
8383
if (!(Test-Path $PACKAGES_CONFIG)) {
8484
Write-Verbose -Message "Downloading packages.config..."
85-
try { Invoke-WebRequest -Uri http://cakebuild.net/bootstrapper/packages -OutFile $PACKAGES_CONFIG } catch {
85+
try { Invoke-WebRequest -Uri http://cakebuild.net/download/bootstrapper/packages -OutFile $PACKAGES_CONFIG } catch {
8686
Throw "Could not download packages.config."
8787
}
8888
}

build.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ fi
4242
# Make sure that packages.config exist.
4343
if [ ! -f "$TOOLS_DIR/packages.config" ]; then
4444
echo "Downloading packages.config..."
45-
curl -Lsfo "$TOOLS_DIR/packages.config" http://cakebuild.net/bootstrapper/packages
45+
curl -Lsfo "$TOOLS_DIR/packages.config" http://cakebuild.net/download/bootstrapper/packages
4646
if [ $? -ne 0 ]; then
4747
echo "An error occured while downloading packages.config."
4848
exit 1
@@ -52,7 +52,8 @@ fi
5252
# Download NuGet if it does not exist.
5353
if [ ! -f "$NUGET_EXE" ]; then
5454
echo "Downloading NuGet..."
55-
curl -Lsfo "$NUGET_EXE" https://dist.nuget.org/win-x86-commandline/latest/nuget.exe
55+
# For now grab explicit 2.8.6 version instead of: https://dist.nuget.org/win-x86-commandline/latest/nuget.exe
56+
curl -Lsfo "$NUGET_EXE" https://dist.nuget.org/win-x86-commandline/v2.8.6/nuget.exe
5657
if [ $? -ne 0 ]; then
5758
echo "An error occured while downloading nuget.exe."
5859
exit 1

0 commit comments

Comments
 (0)