mirror of
https://github.com/PowerShell/PowerShell
synced 2026-06-08 12:12:50 +00:00
Cache nuget.exe in scripts
Rather than downloading nuget.exe on every run, we can cache it, just not in monad-ext with a rule to copy it. Instead, there's a rule to refresh it from its canonical home. See http://dist.nuget.org/index.html
This commit is contained in:
+2
-4
@@ -127,10 +127,8 @@ libps.so-test: $(addprefix dotnetlibs/, libps.so monad_native)
|
||||
dotnetlibs/api-ms-win-core-registry-l1-1-0.dll: ../src/win-dll/lib-api-ms-win-core-registry-l1-1-0.c
|
||||
gcc -o $@ -fPIC -shared -Wall $^
|
||||
|
||||
# this is the manual step that will install some stuff using nuget and do other things that can't be dependency
|
||||
# tracked that easily
|
||||
nuget.exe:
|
||||
wget 'https://nuget.org/nuget.exe'
|
||||
wget 'https://dist.nuget.org/win-x86-commandline/latest/nuget.exe'
|
||||
|
||||
buildtemp:
|
||||
mkdir -p buildtemp
|
||||
@@ -229,7 +227,7 @@ clean:
|
||||
|
||||
# clean built stuff + prepare step
|
||||
cleanall: clean clean-native
|
||||
rm -rf nuget.exe buildtemp xunittests.xml
|
||||
rm -rf buildtemp xunittests.xml
|
||||
|
||||
docker-build:
|
||||
docker build --no-cache=false -t image_ps .
|
||||
|
||||
Binary file not shown.
Reference in New Issue
Block a user