Skip to content

Commit 4c22dfe

Browse files
committed
ignore cache by default
1 parent 275989c commit 4c22dfe

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

src/Paket.Bootstrapper.preview3/Paket.Bootstrapper.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
<DefineConstants>
1111
NO_SSL3;
1212
NO_SYSTEMWEBPROXY;
13+
PAKET_BOOTSTRAP_NO_CACHE;
1314
PAKET_BOOTSTRAP_WORKAROUND_MSBUILD_URLS;
1415
$(DefineConstants)
1516
</DefineConstants>

src/Paket.Bootstrapper/Program.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,11 @@ static void Main(string[] args)
7171
if (options.UnprocessedCommandArgs.Any())
7272
ConsoleImpl.WriteWarning("Ignoring the following unknown argument(s): {0}", String.Join(", ", options.UnprocessedCommandArgs));
7373

74+
#if PAKET_BOOTSTRAP_NO_CACHE
75+
ConsoleImpl.WriteTrace("Force ignore cache, because not implemented.");
76+
options.DownloadArguments.IgnoreCache = true;
77+
#endif
78+
7479
var effectiveStrategy = GetEffectiveDownloadStrategy(options.DownloadArguments, options.PreferNuget, options.ForceNuget);
7580
ConsoleImpl.WriteTrace("Using strategy: " + effectiveStrategy.Name);
7681
ConsoleImpl.WriteTrace("Using install kind: " + (options.DownloadArguments.AsTool? "tool": "exe"));

0 commit comments

Comments
 (0)