From 9bb309d5b5021ea4f25955eb9b1db5e994086fda Mon Sep 17 00:00:00 2001 From: David McFarland Date: Sat, 21 Sep 2024 20:49:19 -0300 Subject: [PATCH] buildDotnetModule: set --no-restore in check/publish/pack --- .../dotnet/build-dotnet-module/hooks/dotnet-check-hook.sh | 1 + .../dotnet/build-dotnet-module/hooks/dotnet-install-hook.sh | 2 ++ 2 files changed, 3 insertions(+) diff --git a/pkgs/build-support/dotnet/build-dotnet-module/hooks/dotnet-check-hook.sh b/pkgs/build-support/dotnet/build-dotnet-module/hooks/dotnet-check-hook.sh index 21ebbbe5381e..38ded5874ad2 100644 --- a/pkgs/build-support/dotnet/build-dotnet-module/hooks/dotnet-check-hook.sh +++ b/pkgs/build-support/dotnet/build-dotnet-module/hooks/dotnet-check-hook.sh @@ -62,6 +62,7 @@ dotnetCheckHook() { -p:ContinuousIntegrationBuild=true \ -p:Deterministic=true \ --configuration "$dotnetBuildType" \ + --no-restore \ --no-build \ --logger "console;verbosity=normal" \ "${runtimeIdFlagsArray[@]}" \ diff --git a/pkgs/build-support/dotnet/build-dotnet-module/hooks/dotnet-install-hook.sh b/pkgs/build-support/dotnet/build-dotnet-module/hooks/dotnet-install-hook.sh index cdd4a50f5d2e..7b008a26d1c6 100644 --- a/pkgs/build-support/dotnet/build-dotnet-module/hooks/dotnet-install-hook.sh +++ b/pkgs/build-support/dotnet/build-dotnet-module/hooks/dotnet-install-hook.sh @@ -55,6 +55,7 @@ dotnetInstallHook() { -p:OverwriteReadOnlyFiles=true \ --output "$dotnetInstallPath" \ --configuration "$dotnetBuildType" \ + --no-restore \ --no-build \ "${runtimeIdFlagsArray[@]}" \ "${dotnetInstallFlagsArray[@]}" \ @@ -73,6 +74,7 @@ dotnetInstallHook() { -p:OverwriteReadOnlyFiles=true \ --output "$out/share/nuget/source" \ --configuration "$dotnetBuildType" \ + --no-restore \ --no-build \ --runtime "$runtimeId" \ "${dotnetPackFlagsArray[@]}" \