Skip to content

Commit

Permalink
Fixed hit and miss nuget error https://github.com/NuGet/Home/issues/…
Browse files Browse the repository at this point in the history
…13729` from net8.0 target frameworks (#150)

* Fixed hit and miss nuget error NuGet/Home#13729 from net8.0 target frameworks

* Added `global.json`

* Added `global.json` 2

* Added `global.json` 3

* Added `global.json` 4

* Added `global.json` 5

* Added `global.json` 6

* Added `global.json` 7

* Added `global.json` 8

* Added `global.json` 9
  • Loading branch information
Kiryuumaru authored Sep 20, 2024
1 parent 39e55a7 commit 02836d0
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 9 deletions.
12 changes: 6 additions & 6 deletions NukeBuildHelpers/BaseNukeBuildHelpers.Helpers.cs
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ private static async Task CachePreload(IRunEntryDefinition entry)
if (!cachePairs.Any(i => i.Value == dir))
{
dir.DeleteDirectory();
Log.Information("{path} cache cleaned", dir);
Log.Information("{Path} cache cleaned", dir);
}
}

Expand All @@ -146,15 +146,15 @@ private static async Task CachePreload(IRunEntryDefinition entry)
{
cachePairs.Remove(pair.Key);
pair.Value.DeleteDirectory();
Log.Information("{path} cache cleaned", pair.Key);
Log.Information("{Path} cache cleaned", pair.Key);
}
}

foreach (var path in cachePaths)
{
if (!cachePairs.TryGetValue(path.ToString(), out var cachePath) || !cachePath.DirectoryExists())
{
Log.Information("{path} cache missed", path);
Log.Information("{Path} cache missed", path);
continue;
}
tasks.Add(Task.Run(async () =>
Expand All @@ -169,7 +169,7 @@ private static async Task CachePreload(IRunEntryDefinition entry)
{
await cachePathValue.MoveTo(path);
}
Log.Information("{path} cache loaded", path);
Log.Information("{Path} cache loaded", path);
}));
}

Expand All @@ -190,7 +190,7 @@ private static async Task CachePostload(IRunEntryDefinition entry)
{
if (!path.FileExists() && !path.DirectoryExists())
{
Log.Information("{path} cache missed", path);
Log.Information("{Path} cache missed", path);
continue;
}
if (!cachePairs.TryGetValue(path.ToString(), out var cachePath))
Expand All @@ -210,7 +210,7 @@ private static async Task CachePostload(IRunEntryDefinition entry)
{
await path.MoveTo(cachePathValue);
}
Log.Information("{path} cache saved", path);
Log.Information("{Path} cache saved", path);
}));
}

Expand Down
4 changes: 1 addition & 3 deletions NukeBuildHelpers/NukeBuildHelpers.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,8 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="Azure.Identity" Version="1.12.0" />
<!-- Override vulnerability warnings: https://github.com/advisories/GHSA-447r-wph3-92pm-->
<PackageReference Include="System.Formats.Asn1" Version="8.0.1" />
<PackageReference Include="System.Runtime.Serialization.Formatters" Version="4.3.0" />
<PackageReference Include="System.Text.Json" Version="8.0.4" />

<PackageReference Include="NuGet.Packaging" Version="6.11.0" />
<PackageReference Include="Nuke.Common" Version="8.1.0" />
Expand Down
6 changes: 6 additions & 0 deletions global.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"sdk": {
"version": "8.0.400",
"rollForward": "latestMajor"
}
}

0 comments on commit 02836d0

Please sign in to comment.