Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NuGet restore failing on .NET 5 for Debian-based OSes (CA trust changed) #10491

Closed
dasMulli opened this issue Jan 27, 2021 · 315 comments · Fixed by AOSC-Dev/aosc-os-abbs#3616
Closed

Comments

@dasMulli
Copy link

dasMulli commented Jan 27, 2021

NuGet Team Update

For the most recent status and suggested workarounds please see: NuGet/Announcements#49

Original report from @dasMulli

Currently restoring any Microsoft packages within the official Docker images is broken and logging NU3028 restore failures:

FROM mcr.microsoft.com/dotnet/sdk:5.0
WORKDIR /src
RUN dotnet new razor --auth Individual
RUN dotnet build

Output:

C:\demos\NuTest>docker build -t nutest .
Sending build context to Docker daemon  2.048kB
Step 1/4 : FROM mcr.microsoft.com/dotnet/sdk:5.0
 ---> e735190c5cb9
Step 2/4 : WORKDIR /src
 ---> Running in 05e3dacff59e
Removing intermediate container 05e3dacff59e
 ---> d102c9d21331
Step 3/4 : RUN dotnet new razor --auth Individual
 ---> Running in 6d1741e7e99b
Getting ready...
The template "ASP.NET Core Web App" was created successfully.
This template contains technologies from parties other than Microsoft, see https://aka.ms/aspnetcore/5.0-third-party-notices for details.

Processing post-creation actions...
Running 'dotnet restore' on /src/src.csproj...
  Determining projects to restore...
/src/src.csproj : error NU3028: Package 'System.Memory 4.5.3' from source 'https://api.nuget.org/v3/index.json': The author primary signature's timestamp found a chain building issue: UntrustedRoot: self signed certificate in certificate chain
/src/src.csproj : error NU3037: Package 'System.Memory 4.5.3' from source 'https://api.nuget.org/v3/index.json': The author primary signature validity period has expired./src/src.csproj : error NU3028: Package 'System.Memory 4.5.3' from source 'https://api.nuget.org/v3/index.json': The repository countersignature's timestamp found a chain building issue: UntrustedRoot: self signed certificate in certificate chain
/src/src.csproj : error NU3028: Package 'Microsoft.Extensions.Logging.Abstractions 5.0.0' from source 'https://api.nuget.org/v3/index.json': The author primary signature's timestamp found a chain building issue: UntrustedRoot: self signed certificate in certificate chain
/src/src.csproj : error NU3037: Package 'Microsoft.Extensions.Logging.Abstractions 5.0.0' from source 'https://api.nuget.org/v3/index.json': The author primary signature 
validity period has expired.
/src/src.csproj : error NU3028: Package 'Microsoft.Extensions.Logging.Abstractions 5.0.0' from source 'https://api.nuget.org/v3/index.json': The repository countersignature's timestamp found a chain building issue: UntrustedRoot: self signed certificate in certificate chain
/src/src.csproj : error NU3028: Package 'Microsoft.Extensions.Options 5.0.0' from source 'https://api.nuget.org/v3/index.json': The author primary signature's timestamp found a chain building issue: UntrustedRoot: self signed certificate in certificate chain
/src/src.csproj : error NU3037: Package 'Microsoft.Extensions.Options 5.0.0' from source 'https://api.nuget.org/v3/index.json': The author primary signature validity period has expired.
/src/src.csproj : error NU3028: Package 'Microsoft.Extensions.Options 5.0.0' from source 'https://api.nuget.org/v3/index.json': The repository countersignature's timestamp found a chain building issue: UntrustedRoot: self signed certificate in certificate chain
/src/src.csproj : error NU3028: Package 'Microsoft.Extensions.Caching.Memory 5.0.0' from source 'https://api.nuget.org/v3/index.json': The author primary signature's timestamp found a chain building issue: UntrustedRoot: self signed certificate in certificate chain
/src/src.csproj : error NU3037: Package 'Microsoft.Extensions.Caching.Memory 5.0.0' from source 'https://api.nuget.org/v3/index.json': The author primary signature validity period has expired.
/src/src.csproj : error NU3028: Package 'Microsoft.Extensions.Caching.Memory 5.0.0' from source 'https://api.nuget.org/v3/index.json': The repository countersignature's timestamp found a chain building issue: UntrustedRoot: self signed certificate in certificate chain
/src/src.csproj : error NU3028: Package 'System.ComponentModel.Annotations 5.0.0' from source 'https://api.nuget.org/v3/index.json': The author primary signature's timestamp found a chain building issue: UntrustedRoot: self signed certificate in certificate chain
/src/src.csproj : error NU3037: Package 'System.ComponentModel.Annotations 5.0.0' from source 'https://api.nuget.org/v3/index.json': The author primary signature validity period has expired.
/src/src.csproj : error NU3028: Package 'System.ComponentModel.Annotations 5.0.0' from source 'https://api.nuget.org/v3/index.json': The repository countersignature's timestamp found a chain building issue: UntrustedRoot: self signed certificate in certificate chain
/src/src.csproj : error NU3028: Package 'Microsoft.Extensions.DependencyInjection 5.0.0' from source 'https://api.nuget.org/v3/index.json': The author primary signature's timestamp found a chain building issue: UntrustedRoot: self signed certificate in certificate chain
/src/src.csproj : error NU3037: Package 'Microsoft.Extensions.DependencyInjection 5.0.0' from source 'https://api.nuget.org/v3/index.json': The author primary signature validity period has expired.
/src/src.csproj : error NU3028: Package 'Microsoft.Extensions.DependencyInjection 5.0.0' from source 'https://api.nuget.org/v3/index.json': The repository countersignature's timestamp found a chain building issue: UntrustedRoot: self signed certificate in certificate chain
/src/src.csproj : error NU3028: Package 'Microsoft.CSharp 4.7.0' from source 'https://api.nuget.org/v3/index.json': The author primary signature's timestamp found a chain building issue: UntrustedRoot: self signed certificate in certificate chain
/src/src.csproj : error NU3037: Package 'Microsoft.CSharp 4.7.0' from source 'https://api.nuget.org/v3/index.json': The author primary signature validity period has expired.
/src/src.csproj : error NU3028: Package 'Microsoft.CSharp 4.7.0' from source 'https://api.nuget.org/v3/index.json': The repository countersignature's timestamp found a chain building issue: UntrustedRoot: self signed certificate in certificate chain
/src/src.csproj : error NU3028: Package 'Microsoft.Extensions.Configuration.Abstractions 5.0.0' from source 'https://api.nuget.org/v3/index.json': The author primary signature's timestamp found a chain building issue: UntrustedRoot: self signed certificate in certificate chain
/src/src.csproj : error NU3037: Package 'Microsoft.Extensions.Configuration.Abstractions 5.0.0' from source 'https://api.nuget.org/v3/index.json': The author primary signature validity period has expired.
/src/src.csproj : error NU3028: Package 'Microsoft.Extensions.Configuration.Abstractions 5.0.0' from source 'https://api.nuget.org/v3/index.json': The repository countersignature's timestamp found a chain building issue: UntrustedRoot: self signed certificate in certificate chain
/src/src.csproj : error NU3028: Package 'Microsoft.Extensions.DependencyInjection.Abstractions 5.0.0' from source 'https://api.nuget.org/v3/index.json': The author primary signature's timestamp found a chain building issue: UntrustedRoot: self signed certificate in certificate chain
/src/src.csproj : error NU3037: Package 'Microsoft.Extensions.DependencyInjection.Abstractions 5.0.0' from source 'https://api.nuget.org/v3/index.json': The author primary signature validity period has expired.
/src/src.csproj : error NU3028: Package 'Microsoft.Extensions.DependencyInjection.Abstractions 5.0.0' from source 'https://api.nuget.org/v3/index.json': The repository countersignature's timestamp found a chain building issue: UntrustedRoot: self signed certificate in certificate chain
/src/src.csproj : error NU3028: Package 'Microsoft.DotNet.PlatformAbstractions 3.1.6' from source 'https://api.nuget.org/v3/index.json': The author primary signature's timestamp found a chain building issue: UntrustedRoot: self signed certificate in certificate chain
/src/src.csproj : error NU3037: Package 'Microsoft.DotNet.PlatformAbstractions 3.1.6' from source 'https://api.nuget.org/v3/index.json': The author primary signature validity period has expired.
/src/src.csproj : error NU3028: Package 'Microsoft.DotNet.PlatformAbstractions 3.1.6' from source 'https://api.nuget.org/v3/index.json': The repository countersignature's timestamp found a chain building issue: UntrustedRoot: self signed certificate in certificate chain
/src/src.csproj : error NU3028: Package 'Microsoft.Extensions.Caching.Abstractions 5.0.0' from source 'https://api.nuget.org/v3/index.json': The author primary signature's timestamp found a chain building issue: UntrustedRoot: self signed certificate in certificate chain
/src/src.csproj : error NU3037: Package 'Microsoft.Extensions.Caching.Abstractions 5.0.0' from source 'https://api.nuget.org/v3/index.json': The author primary signature 
validity period has expired.
/src/src.csproj : error NU3028: Package 'Microsoft.Extensions.Caching.Abstractions 5.0.0' from source 'https://api.nuget.org/v3/index.json': The repository countersignature's timestamp found a chain building issue: UntrustedRoot: self signed certificate in certificate chain
/src/src.csproj : error NU3028: Package 'System.Collections.Immutable 5.0.0' from source 'https://api.nuget.org/v3/index.json': The author primary signature's timestamp found a chain building issue: UntrustedRoot: self signed certificate in certificate chain
/src/src.csproj : error NU3037: Package 'System.Collections.Immutable 5.0.0' from source 'https://api.nuget.org/v3/index.json': The author primary signature validity period has expired.
/src/src.csproj : error NU3028: Package 'System.Collections.Immutable 5.0.0' from source 'https://api.nuget.org/v3/index.json': The repository countersignature's timestamp found a chain building issue: UntrustedRoot: self signed certificate in certificate chain
/src/src.csproj : error NU3028: Package 'Microsoft.Extensions.DependencyModel 5.0.0' from source 'https://api.nuget.org/v3/index.json': The author primary signature's timestamp found a chain building issue: UntrustedRoot: self signed certificate in certificate chain
/src/src.csproj : error NU3037: Package 'Microsoft.Extensions.DependencyModel 5.0.0' from source 'https://api.nuget.org/v3/index.json': The author primary signature validity period has expired.
/src/src.csproj : error NU3028: Package 'Microsoft.Extensions.DependencyModel 5.0.0' from source 'https://api.nuget.org/v3/index.json': The repository countersignature's 
timestamp found a chain building issue: UntrustedRoot: self signed certificate in certificate chain
/src/src.csproj : error NU3028: Package 'Microsoft.Extensions.FileProviders.Abstractions 5.0.0' from source 'https://api.nuget.org/v3/index.json': The author primary signature's timestamp found a chain building issue: UntrustedRoot: self signed certificate in certificate chain
/src/src.csproj : error NU3037: Package 'Microsoft.Extensions.FileProviders.Abstractions 5.0.0' from source 'https://api.nuget.org/v3/index.json': The author primary signature validity period has expired.
/src/src.csproj : error NU3028: Package 'Microsoft.Extensions.FileProviders.Abstractions 5.0.0' from source 'https://api.nuget.org/v3/index.json': The repository countersignature's timestamp found a chain building issue: UntrustedRoot: self signed certificate in certificate chain
/src/src.csproj : error NU3028: Package 'Microsoft.Extensions.Logging 5.0.0' from source 'https://api.nuget.org/v3/index.json': The author primary signature's timestamp found a chain building issue: UntrustedRoot: self signed certificate in certificate chain
/src/src.csproj : error NU3037: Package 'Microsoft.Extensions.Logging 5.0.0' from source 'https://api.nuget.org/v3/index.json': The author primary signature validity period has expired.
/src/src.csproj : error NU3028: Package 'Microsoft.Extensions.Logging 5.0.0' from source 'https://api.nuget.org/v3/index.json': The repository countersignature's timestamp found a chain building issue: UntrustedRoot: self signed certificate in certificate chain
/src/src.csproj : error NU3028: Package 'Microsoft.Extensions.Primitives 5.0.0' from source 'https://api.nuget.org/v3/index.json': The author primary signature's timestamp found a chain building issue: UntrustedRoot: self signed certificate in certificate chain
/src/src.csproj : error NU3037: Package 'Microsoft.Extensions.Primitives 5.0.0' from source 'https://api.nuget.org/v3/index.json': The author primary signature validity period has expired.
/src/src.csproj : error NU3028: Package 'Microsoft.Extensions.Primitives 5.0.0' from source 'https://api.nuget.org/v3/index.json': The repository countersignature's timestamp found a chain building issue: UntrustedRoot: self signed certificate in certificate chain
  Failed to restore /src/src.csproj (in 3.24 sec).
Restore failed.
Post action failed.
Description: Restore NuGet packages required by this project.
Manual instructions: Run 'dotnet restore'

Removing intermediate container 6d1741e7e99b
 ---> ab6a0d574aeb
Step 4/4 : RUN dotnet build
 ---> Running in cf58e25578bf
Microsoft (R) Build Engine version 16.8.3+39993bd9d for .NET
Copyright (C) Microsoft Corporation. All rights reserved.

  Determining projects to restore...
/src/src.csproj : error NU3028: Package 'Microsoft.Extensions.DependencyInjection 5.0.0' from source 'https://api.nuget.org/v3/index.json': The author primary signature's timestamp found a chain building issue: UntrustedRoot: self signed certificate in certificate chain
/src/src.csproj : error NU3037: Package 'Microsoft.Extensions.DependencyInjection 5.0.0' from source 'https://api.nuget.org/v3/index.json': The author primary signature validity period has expired.
/src/src.csproj : error NU3028: Package 'Microsoft.Extensions.DependencyInjection 5.0.0' from source 'https://api.nuget.org/v3/index.json': The repository countersignature's timestamp found a chain building issue: UntrustedRoot: self signed certificate in certificate chain
/src/src.csproj : error NU3028: Package 'Microsoft.Extensions.Primitives 5.0.0' from source 'https://api.nuget.org/v3/index.json': The author primary signature's timestamp found a chain building issue: UntrustedRoot: self signed certificate in certificate chain
/src/src.csproj : error NU3037: Package 'Microsoft.Extensions.Primitives 5.0.0' from source 'https://api.nuget.org/v3/index.json': The author primary signature validity period has expired.
/src/src.csproj : error NU3028: Package 'Microsoft.Extensions.Primitives 5.0.0' from source 'https://api.nuget.org/v3/index.json': The repository countersignature's timestamp found a chain building issue: UntrustedRoot: self signed certificate in certificate chain
/src/src.csproj : error NU3028: Package 'Microsoft.Extensions.Configuration.Abstractions 5.0.0' from source 'https://api.nuget.org/v3/index.json': The author primary signature's timestamp found a chain building issue: UntrustedRoot: self signed certificate in certificate chain
/src/src.csproj : error NU3037: Package 'Microsoft.Extensions.Configuration.Abstractions 5.0.0' from source 'https://api.nuget.org/v3/index.json': The author primary signature validity period has expired.
/src/src.csproj : error NU3028: Package 'Microsoft.Extensions.Configuration.Abstractions 5.0.0' from source 'https://api.nuget.org/v3/index.json': The repository countersignature's timestamp found a chain building issue: UntrustedRoot: self signed certificate in certificate chain
/src/src.csproj : error NU3028: Package 'Microsoft.Extensions.Logging 5.0.0' from source 'https://api.nuget.org/v3/index.json': The author primary signature's timestamp found a chain building issue: UntrustedRoot: self signed certificate in certificate chain
/src/src.csproj : error NU3037: Package 'Microsoft.Extensions.Logging 5.0.0' from source 'https://api.nuget.org/v3/index.json': The author primary signature validity period has expired.
/src/src.csproj : error NU3028: Package 'Microsoft.Extensions.Logging 5.0.0' from source 'https://api.nuget.org/v3/index.json': The repository countersignature's timestamp found a chain building issue: UntrustedRoot: self signed certificate in certificate chain
/src/src.csproj : error NU3028: Package 'System.ComponentModel.Annotations 5.0.0' from source 'https://api.nuget.org/v3/index.json': The author primary signature's timestamp found a chain building issue: UntrustedRoot: self signed certificate in certificate chain
/src/src.csproj : error NU3037: Package 'System.ComponentModel.Annotations 5.0.0' from source 'https://api.nuget.org/v3/index.json': The author primary signature validity period has expired.
/src/src.csproj : error NU3028: Package 'System.ComponentModel.Annotations 5.0.0' from source 'https://api.nuget.org/v3/index.json': The repository countersignature's timestamp found a chain building issue: UntrustedRoot: self signed certificate in certificate chain
/src/src.csproj : error NU3028: Package 'Microsoft.Extensions.Caching.Abstractions 5.0.0' from source 'https://api.nuget.org/v3/index.json': The author primary signature's timestamp found a chain building issue: UntrustedRoot: self signed certificate in certificate chain
/src/src.csproj : error NU3037: Package 'Microsoft.Extensions.Caching.Abstractions 5.0.0' from source 'https://api.nuget.org/v3/index.json': The author primary signature 
validity period has expired.
/src/src.csproj : error NU3028: Package 'Microsoft.Extensions.Caching.Abstractions 5.0.0' from source 'https://api.nuget.org/v3/index.json': The repository countersignature's timestamp found a chain building issue: UntrustedRoot: self signed certificate in certificate chain
/src/src.csproj : error NU3028: Package 'Microsoft.Extensions.FileProviders.Abstractions 5.0.0' from source 'https://api.nuget.org/v3/index.json': The author primary signature's timestamp found a chain building issue: UntrustedRoot: self signed certificate in certificate chain
/src/src.csproj : error NU3037: Package 'Microsoft.Extensions.FileProviders.Abstractions 5.0.0' from source 'https://api.nuget.org/v3/index.json': The author primary signature validity period has expired.
/src/src.csproj : error NU3028: Package 'Microsoft.Extensions.FileProviders.Abstractions 5.0.0' from source 'https://api.nuget.org/v3/index.json': The repository countersignature's timestamp found a chain building issue: UntrustedRoot: self signed certificate in certificate chain
/src/src.csproj : error NU3028: Package 'Microsoft.DotNet.PlatformAbstractions 3.1.6' from source 'https://api.nuget.org/v3/index.json': The author primary signature's timestamp found a chain building issue: UntrustedRoot: self signed certificate in certificate chain
/src/src.csproj : error NU3037: Package 'Microsoft.DotNet.PlatformAbstractions 3.1.6' from source 'https://api.nuget.org/v3/index.json': The author primary signature validity period has expired.
/src/src.csproj : error NU3028: Package 'Microsoft.DotNet.PlatformAbstractions 3.1.6' from source 'https://api.nuget.org/v3/index.json': The repository countersignature's timestamp found a chain building issue: UntrustedRoot: self signed certificate in certificate chain
/src/src.csproj : error NU3028: Package 'Microsoft.Extensions.DependencyModel 5.0.0' from source 'https://api.nuget.org/v3/index.json': The author primary signature's timestamp found a chain building issue: UntrustedRoot: self signed certificate in certificate chain
/src/src.csproj : error NU3037: Package 'Microsoft.Extensions.DependencyModel 5.0.0' from source 'https://api.nuget.org/v3/index.json': The author primary signature validity period has expired.
/src/src.csproj : error NU3028: Package 'Microsoft.Extensions.DependencyModel 5.0.0' from source 'https://api.nuget.org/v3/index.json': The repository countersignature's 
timestamp found a chain building issue: UntrustedRoot: self signed certificate in certificate chain
/src/src.csproj : error NU3028: Package 'Microsoft.Extensions.Logging.Abstractions 5.0.0' from source 'https://api.nuget.org/v3/index.json': The author primary signature's timestamp found a chain building issue: UntrustedRoot: self signed certificate in certificate chain
/src/src.csproj : error NU3037: Package 'Microsoft.Extensions.Logging.Abstractions 5.0.0' from source 'https://api.nuget.org/v3/index.json': The author primary signature 
validity period has expired.
/src/src.csproj : error NU3028: Package 'Microsoft.Extensions.Logging.Abstractions 5.0.0' from source 'https://api.nuget.org/v3/index.json': The repository countersignature's timestamp found a chain building issue: UntrustedRoot: self signed certificate in certificate chain
/src/src.csproj : error NU3028: Package 'Microsoft.Extensions.Caching.Memory 5.0.0' from source 'https://api.nuget.org/v3/index.json': The author primary signature's timestamp found a chain building issue: UntrustedRoot: self signed certificate in certificate chain
/src/src.csproj : error NU3037: Package 'Microsoft.Extensions.Caching.Memory 5.0.0' from source 'https://api.nuget.org/v3/index.json': The author primary signature validity period has expired.
/src/src.csproj : error NU3028: Package 'Microsoft.Extensions.Caching.Memory 5.0.0' from source 'https://api.nuget.org/v3/index.json': The repository countersignature's timestamp found a chain building issue: UntrustedRoot: self signed certificate in certificate chain
/src/src.csproj : error NU3028: Package 'System.Memory 4.5.3' from source 'https://api.nuget.org/v3/index.json': The author primary signature's timestamp found a chain building issue: UntrustedRoot: self signed certificate in certificate chain
/src/src.csproj : error NU3037: Package 'System.Memory 4.5.3' from source 'https://api.nuget.org/v3/index.json': The author primary signature validity period has expired./src/src.csproj : error NU3028: Package 'System.Memory 4.5.3' from source 'https://api.nuget.org/v3/index.json': The repository countersignature's timestamp found a chain building issue: UntrustedRoot: self signed certificate in certificate chain
/src/src.csproj : error NU3028: Package 'Microsoft.CSharp 4.7.0' from source 'https://api.nuget.org/v3/index.json': The author primary signature's timestamp found a chain building issue: UntrustedRoot: self signed certificate in certificate chain
/src/src.csproj : error NU3037: Package 'Microsoft.CSharp 4.7.0' from source 'https://api.nuget.org/v3/index.json': The author primary signature validity period has expired.
/src/src.csproj : error NU3028: Package 'Microsoft.CSharp 4.7.0' from source 'https://api.nuget.org/v3/index.json': The repository countersignature's timestamp found a chain building issue: UntrustedRoot: self signed certificate in certificate chain
/src/src.csproj : error NU3028: Package 'System.Collections.Immutable 5.0.0' from source 'https://api.nuget.org/v3/index.json': The author primary signature's timestamp found a chain building issue: UntrustedRoot: self signed certificate in certificate chain
/src/src.csproj : error NU3037: Package 'System.Collections.Immutable 5.0.0' from source 'https://api.nuget.org/v3/index.json': The author primary signature validity period has expired.
/src/src.csproj : error NU3028: Package 'System.Collections.Immutable 5.0.0' from source 'https://api.nuget.org/v3/index.json': The repository countersignature's timestamp found a chain building issue: UntrustedRoot: self signed certificate in certificate chain
/src/src.csproj : error NU3028: Package 'Microsoft.Extensions.DependencyInjection.Abstractions 5.0.0' from source 'https://api.nuget.org/v3/index.json': The author primary signature's timestamp found a chain building issue: UntrustedRoot: self signed certificate in certificate chain
/src/src.csproj : error NU3037: Package 'Microsoft.Extensions.DependencyInjection.Abstractions 5.0.0' from source 'https://api.nuget.org/v3/index.json': The author primary signature validity period has expired.
/src/src.csproj : error NU3028: Package 'Microsoft.Extensions.DependencyInjection.Abstractions 5.0.0' from source 'https://api.nuget.org/v3/index.json': The repository countersignature's timestamp found a chain building issue: UntrustedRoot: self signed certificate in certificate chain
/src/src.csproj : error NU3028: Package 'Microsoft.Extensions.Options 5.0.0' from source 'https://api.nuget.org/v3/index.json': The author primary signature's timestamp found a chain building issue: UntrustedRoot: self signed certificate in certificate chain
/src/src.csproj : error NU3037: Package 'Microsoft.Extensions.Options 5.0.0' from source 'https://api.nuget.org/v3/index.json': The author primary signature validity period has expired.
/src/src.csproj : error NU3028: Package 'Microsoft.Extensions.Options 5.0.0' from source 'https://api.nuget.org/v3/index.json': The repository countersignature's timestamp found a chain building issue: UntrustedRoot: self signed certificate in certificate chain
  Failed to restore /src/src.csproj (in 846 ms).

Build FAILED.

/src/src.csproj : error NU3028: Package 'Microsoft.Extensions.DependencyInjection 5.0.0' from source 'https://api.nuget.org/v3/index.json': The author primary signature's timestamp found a chain building issue: UntrustedRoot: self signed certificate in certificate chain
/src/src.csproj : error NU3037: Package 'Microsoft.Extensions.DependencyInjection 5.0.0' from source 'https://api.nuget.org/v3/index.json': The author primary signature validity period has expired.
/src/src.csproj : error NU3028: Package 'Microsoft.Extensions.DependencyInjection 5.0.0' from source 'https://api.nuget.org/v3/index.json': The repository countersignature's timestamp found a chain building issue: UntrustedRoot: self signed certificate in certificate chain
/src/src.csproj : error NU3028: Package 'Microsoft.Extensions.Primitives 5.0.0' from source 'https://api.nuget.org/v3/index.json': The author primary signature's timestamp found a chain building issue: UntrustedRoot: self signed certificate in certificate chain
/src/src.csproj : error NU3037: Package 'Microsoft.Extensions.Primitives 5.0.0' from source 'https://api.nuget.org/v3/index.json': The author primary signature validity period has expired.
/src/src.csproj : error NU3028: Package 'Microsoft.Extensions.Primitives 5.0.0' from source 'https://api.nuget.org/v3/index.json': The repository countersignature's timestamp found a chain building issue: UntrustedRoot: self signed certificate in certificate chain
/src/src.csproj : error NU3028: Package 'Microsoft.Extensions.Configuration.Abstractions 5.0.0' from source 'https://api.nuget.org/v3/index.json': The author primary signature's timestamp found a chain building issue: UntrustedRoot: self signed certificate in certificate chain
/src/src.csproj : error NU3037: Package 'Microsoft.Extensions.Configuration.Abstractions 5.0.0' from source 'https://api.nuget.org/v3/index.json': The author primary signature validity period has expired.
/src/src.csproj : error NU3028: Package 'Microsoft.Extensions.Configuration.Abstractions 5.0.0' from source 'https://api.nuget.org/v3/index.json': The repository countersignature's timestamp found a chain building issue: UntrustedRoot: self signed certificate in certificate chain
/src/src.csproj : error NU3028: Package 'Microsoft.Extensions.Logging 5.0.0' from source 'https://api.nuget.org/v3/index.json': The author primary signature's timestamp found a chain building issue: UntrustedRoot: self signed certificate in certificate chain
/src/src.csproj : error NU3037: Package 'Microsoft.Extensions.Logging 5.0.0' from source 'https://api.nuget.org/v3/index.json': The author primary signature validity period has expired.
/src/src.csproj : error NU3028: Package 'Microsoft.Extensions.Logging 5.0.0' from source 'https://api.nuget.org/v3/index.json': The repository countersignature's timestamp found a chain building issue: UntrustedRoot: self signed certificate in certificate chain
/src/src.csproj : error NU3028: Package 'System.ComponentModel.Annotations 5.0.0' from source 'https://api.nuget.org/v3/index.json': The author primary signature's timestamp found a chain building issue: UntrustedRoot: self signed certificate in certificate chain
/src/src.csproj : error NU3037: Package 'System.ComponentModel.Annotations 5.0.0' from source 'https://api.nuget.org/v3/index.json': The author primary signature validity period has expired.
/src/src.csproj : error NU3028: Package 'System.ComponentModel.Annotations 5.0.0' from source 'https://api.nuget.org/v3/index.json': The repository countersignature's timestamp found a chain building issue: UntrustedRoot: self signed certificate in certificate chain
/src/src.csproj : error NU3028: Package 'Microsoft.Extensions.Caching.Abstractions 5.0.0' from source 'https://api.nuget.org/v3/index.json': The author primary signature's timestamp found a chain building issue: UntrustedRoot: self signed certificate in certificate chain
/src/src.csproj : error NU3037: Package 'Microsoft.Extensions.Caching.Abstractions 5.0.0' from source 'https://api.nuget.org/v3/index.json': The author primary signature 
validity period has expired.
/src/src.csproj : error NU3028: Package 'Microsoft.Extensions.Caching.Abstractions 5.0.0' from source 'https://api.nuget.org/v3/index.json': The repository countersignature's timestamp found a chain building issue: UntrustedRoot: self signed certificate in certificate chain
/src/src.csproj : error NU3028: Package 'Microsoft.Extensions.FileProviders.Abstractions 5.0.0' from source 'https://api.nuget.org/v3/index.json': The author primary signature's timestamp found a chain building issue: UntrustedRoot: self signed certificate in certificate chain
/src/src.csproj : error NU3037: Package 'Microsoft.Extensions.FileProviders.Abstractions 5.0.0' from source 'https://api.nuget.org/v3/index.json': The author primary signature validity period has expired.
/src/src.csproj : error NU3028: Package 'Microsoft.Extensions.FileProviders.Abstractions 5.0.0' from source 'https://api.nuget.org/v3/index.json': The repository countersignature's timestamp found a chain building issue: UntrustedRoot: self signed certificate in certificate chain
/src/src.csproj : error NU3028: Package 'Microsoft.DotNet.PlatformAbstractions 3.1.6' from source 'https://api.nuget.org/v3/index.json': The author primary signature's timestamp found a chain building issue: UntrustedRoot: self signed certificate in certificate chain
/src/src.csproj : error NU3037: Package 'Microsoft.DotNet.PlatformAbstractions 3.1.6' from source 'https://api.nuget.org/v3/index.json': The author primary signature validity period has expired.
/src/src.csproj : error NU3028: Package 'Microsoft.DotNet.PlatformAbstractions 3.1.6' from source 'https://api.nuget.org/v3/index.json': The repository countersignature's timestamp found a chain building issue: UntrustedRoot: self signed certificate in certificate chain
/src/src.csproj : error NU3028: Package 'Microsoft.Extensions.DependencyModel 5.0.0' from source 'https://api.nuget.org/v3/index.json': The author primary signature's timestamp found a chain building issue: UntrustedRoot: self signed certificate in certificate chain
/src/src.csproj : error NU3037: Package 'Microsoft.Extensions.DependencyModel 5.0.0' from source 'https://api.nuget.org/v3/index.json': The author primary signature validity period has expired.
/src/src.csproj : error NU3028: Package 'Microsoft.Extensions.DependencyModel 5.0.0' from source 'https://api.nuget.org/v3/index.json': The repository countersignature's 
timestamp found a chain building issue: UntrustedRoot: self signed certificate in certificate chain
/src/src.csproj : error NU3028: Package 'Microsoft.Extensions.Logging.Abstractions 5.0.0' from source 'https://api.nuget.org/v3/index.json': The author primary signature's timestamp found a chain building issue: UntrustedRoot: self signed certificate in certificate chain
/src/src.csproj : error NU3037: Package 'Microsoft.Extensions.Logging.Abstractions 5.0.0' from source 'https://api.nuget.org/v3/index.json': The author primary signature 
validity period has expired.
/src/src.csproj : error NU3028: Package 'Microsoft.Extensions.Logging.Abstractions 5.0.0' from source 'https://api.nuget.org/v3/index.json': The repository countersignature's timestamp found a chain building issue: UntrustedRoot: self signed certificate in certificate chain
/src/src.csproj : error NU3028: Package 'Microsoft.Extensions.Caching.Memory 5.0.0' from source 'https://api.nuget.org/v3/index.json': The author primary signature's timestamp found a chain building issue: UntrustedRoot: self signed certificate in certificate chain
/src/src.csproj : error NU3037: Package 'Microsoft.Extensions.Caching.Memory 5.0.0' from source 'https://api.nuget.org/v3/index.json': The author primary signature validity period has expired.
/src/src.csproj : error NU3028: Package 'Microsoft.Extensions.Caching.Memory 5.0.0' from source 'https://api.nuget.org/v3/index.json': The repository countersignature's timestamp found a chain building issue: UntrustedRoot: self signed certificate in certificate chain
/src/src.csproj : error NU3028: Package 'System.Memory 4.5.3' from source 'https://api.nuget.org/v3/index.json': The author primary signature's timestamp found a chain building issue: UntrustedRoot: self signed certificate in certificate chain
/src/src.csproj : error NU3037: Package 'System.Memory 4.5.3' from source 'https://api.nuget.org/v3/index.json': The author primary signature validity period has expired./src/src.csproj : error NU3028: Package 'System.Memory 4.5.3' from source 'https://api.nuget.org/v3/index.json': The repository countersignature's timestamp found a chain building issue: UntrustedRoot: self signed certificate in certificate chain
/src/src.csproj : error NU3028: Package 'Microsoft.CSharp 4.7.0' from source 'https://api.nuget.org/v3/index.json': The author primary signature's timestamp found a chain building issue: UntrustedRoot: self signed certificate in certificate chain
/src/src.csproj : error NU3037: Package 'Microsoft.CSharp 4.7.0' from source 'https://api.nuget.org/v3/index.json': The author primary signature validity period has expired.
/src/src.csproj : error NU3028: Package 'Microsoft.CSharp 4.7.0' from source 'https://api.nuget.org/v3/index.json': The repository countersignature's timestamp found a chain building issue: UntrustedRoot: self signed certificate in certificate chain
/src/src.csproj : error NU3028: Package 'System.Collections.Immutable 5.0.0' from source 'https://api.nuget.org/v3/index.json': The author primary signature's timestamp found a chain building issue: UntrustedRoot: self signed certificate in certificate chain
/src/src.csproj : error NU3037: Package 'System.Collections.Immutable 5.0.0' from source 'https://api.nuget.org/v3/index.json': The author primary signature validity period has expired.
/src/src.csproj : error NU3028: Package 'System.Collections.Immutable 5.0.0' from source 'https://api.nuget.org/v3/index.json': The repository countersignature's timestamp found a chain building issue: UntrustedRoot: self signed certificate in certificate chain
/src/src.csproj : error NU3028: Package 'Microsoft.Extensions.DependencyInjection.Abstractions 5.0.0' from source 'https://api.nuget.org/v3/index.json': The author primary signature's timestamp found a chain building issue: UntrustedRoot: self signed certificate in certificate chain
/src/src.csproj : error NU3037: Package 'Microsoft.Extensions.DependencyInjection.Abstractions 5.0.0' from source 'https://api.nuget.org/v3/index.json': The author primary signature validity period has expired.
/src/src.csproj : error NU3028: Package 'Microsoft.Extensions.DependencyInjection.Abstractions 5.0.0' from source 'https://api.nuget.org/v3/index.json': The repository countersignature's timestamp found a chain building issue: UntrustedRoot: self signed certificate in certificate chain
/src/src.csproj : error NU3028: Package 'Microsoft.Extensions.Options 5.0.0' from source 'https://api.nuget.org/v3/index.json': The author primary signature's timestamp found a chain building issue: UntrustedRoot: self signed certificate in certificate chain
/src/src.csproj : error NU3037: Package 'Microsoft.Extensions.Options 5.0.0' from source 'https://api.nuget.org/v3/index.json': The author primary signature validity period has expired.
/src/src.csproj : error NU3028: Package 'Microsoft.Extensions.Options 5.0.0' from source 'https://api.nuget.org/v3/index.json': The repository countersignature's timestamp found a chain building issue: UntrustedRoot: self signed certificate in certificate chain
    0 Warning(s)
    48 Error(s)

Time Elapsed 00:00:01.28
The command '/bin/sh -c dotnet build' returned a non-zero code: 1
@DmytroHnatiuk
Copy link

on .net core 5.0 the same problem

@SergeyFilippov
Copy link

I have the same issue also without docker. After cleaning the nuget cache it happens in all environements.
Is something really wrong with certificate?

@DmytroHnatiuk
Copy link

@SergeyFilippov I think nuget`s servers have problem with ssl

@aling93
Copy link

aling93 commented Jan 27, 2021

We're seeing the same issue on our side.

@SergeyFilippov
Copy link

SergeyFilippov commented Jan 27, 2021

So, there is in deed certificate issue.
If one tries to execute "nuget verify -All <msnuget.nupkg>" there is clear evidence:

Subject Name: CN=Microsoft Corporation, O=Microsoft Corporation, L=Redmond, S=Washington, C=US
SHA1 hash: F404000FB11E61F446529981C7059A76C061631E
SHA256 hash: 3F9001EA83C560D712C24CF213C3D312CB3BFF51EE89435D3430BD06B5D0EECE
Issued by: CN=DigiCert SHA2 Assured ID Code Signing CA, OU=www.digicert.com, O=DigiCert Inc, C=US
Valid from: 26.02.2018 01:00:00 to 27.01.2021 13:00:00

So MS cert expired today at 13:00

@hrytskivr
Copy link

Experiencing same issue.

@GaryBentham
Copy link

GaryBentham commented Jan 27, 2021

Same issue with errors NU3028 and NU3037

@svdHero
Copy link

svdHero commented Jan 27, 2021

Same issue here.

@dasMulli How about adding "with errors NU3028 and NU3037" to the issue title for better discoverability?

@Discombenulated
Copy link

Is the proper place for this issue https://github.com/microsoft/containerregistry/issues ?

@TomyCesaille
Copy link

Linking the relevant news here: https://devblogs.microsoft.com/nuget/microsoft-author-signing-certificate-update/

The docker images are not up to date apparently.

@dasMulli
Copy link
Author

dasMulli commented Jan 27, 2021

In theory following https://devblogs.microsoft.com/nuget/microsoft-author-signing-certificate-update/#client-policy and adding the appropriate sections to a nuget.config should work but it does not work for me. Not even with allowUntrustedRoot="true" 😢
However I'd be glad if someone else also tried and it's not just me

@ClumsyPenguin
Copy link

ClumsyPenguin commented Jan 27, 2021

I thought this was me. Spend all afternoon to fix this issue...

deleting you .nuget folder or Nuget Cache does not fix this issue

Update: My project is does not work in debug anymore, probably because i deleted my .nuget folder 😦
Guess i am just gonna go back to my bed 😆

@adamhathcock
Copy link

In theory following https://devblogs.microsoft.com/nuget/microsoft-author-signing-certificate-update/#client-policy and adding the appropriate sections to a nuget.config should work but it does not work for me. Not even with allowUntrustedRoot="true" 😢
However I'd be glad if someone else also tried and it's not just me

I can't get this to work for me either.

Can confirm it's also not a docker-only problem. I renamed my .nuget folder and restored with the errors above

@mogery
Copy link

mogery commented Jan 27, 2021

Are there any workarounds for this?

EDIT: Also can confirm, not a docker-only problem.

@lsjoberg
Copy link

Same issue here, using mcr.microsoft.com/dotnet/sdk:5.0 for building.

@kiddieverts
Copy link

kiddieverts commented Jan 27, 2021

Are there any workarounds for this?

EDIT: Also can confirm, not a docker-only problem.

Edit: IGNORE THIS, THIS DOES NOT WORK 😔

Found a workaround after reading this article

https://devblogs.microsoft.com/nuget/microsoft-author-signing-certificate-update/#client-policy

dotnet/dotnet-docker#2547

@woeterman94
Copy link

Having the same issue with docker builds in azure devops.

@SeppPenner
Copy link

Same here...

@egbertn
Copy link

egbertn commented Jan 27, 2021

This also happens with sdk:5.0.102-1-buster-slim, the latest image.
FYI, so don't waste time on trying to upgrade.

@ClumsyPenguin
Copy link

@kiddieverts Do i need to copy this in the solution root or in the individual project folders?

@kiddieverts
Copy link

I think you can have it in the same folder as the solution file.

@ClumsyPenguin
Copy link

@kiddieverts That does not work for me, maybe i am doing something wrong

@aalali
Copy link

aalali commented Apr 28, 2021

The issue is still there?

Determining projects to restore...
/usr/share/dotnet/sdk/6.0.100-preview.3.21202.5/NuGet.targets(131,5): error : Unable to load the service index for source https://api.nuget.org/v3/index.json.
/usr/share/dotnet/sdk/6.0.100-preview.3.21202.5/NuGet.targets(131,5): error : The SSL connection could not be established, see inner exception.
/usr/share/dotnet/sdk/6.0.100-preview.3.21202.5/NuGet.targets(131,5): error : The remote certificate is invalid because of errors in the certificate chain: UntrustedRoot

I have tested 5.0.202 and 6.0.100-preview.3.21202.5 using docker and this happens only from the command line, within visual studio version 16.8.6 it runs fine. It is just too restrictive to build and test images only within Visual Studio. Please advice!

@richlander
Copy link

I think that's a different problem. That looks like an SSL problem, not code signing. Can you share the Dockerfile you are using?

@aalali
Copy link

aalali commented Apr 28, 2021

@richlander thanks for the response. My Dockerfile is generic enough, can't see anything special. Here it is:

FROM mcr.microsoft.com/dotnet/sdk:6.0-focal AS base
WORKDIR /app

FROM mcr.microsoft.com/dotnet/sdk:6.0-focal AS build
WORKDIR /src
COPY ["CApp/CApp.csproj", "CApp/"]
RUN dotnet restore "CApp/CApp.csproj"
COPY . .
WORKDIR "/src/CApp"
RUN dotnet build "CApp.csproj" -c Release -o /app/build

FROM build AS publish
RUN dotnet publish "CApp.csproj" -c Release -o /app/publish

FROM base AS final
WORKDIR /app
COPY --from=publish /app/publish .
ENTRYPOINT ["dotnet", "bin/Debug/CApp.dll", "s.json"]

I have tested it within WSL 2 Ubuntu 20.04, same issue. It is SSL, so probably unrelated to here and more this. It is certificate chain related, so maybe I need to follow this to bypass SSL by trusting a self-signed development certificate. Thank you!

@richlander
Copy link

Can you try this sample? I did, with no issue.

https://github.com/dotnet/dotnet-docker/blob/main/samples/aspnetapp/Dockerfile.ubuntu-x64

I tried it first with 5.0 and then 6.0.

Tip. To run it on 6.0, I just changed the Dockerfile, and then launched the image like this:

docker run -p 8080:80 --rm -it -e DOTNET_ROLL_FORWARD=LatestMajor aspnetapp

@aalali
Copy link

aalali commented Apr 30, 2021

@richlander I still have the same issue and error reported above.

Clearly, it is not docker specific issue, it is a Linux distribution within WSL 2 or Docker within corporate environment security layers.

For this simple app solveuntrustedrootapp if you run the dotnet restore command on the root using CMD, or build within visual studio, it works fine. Same repo under WSL 2 or Docker you get this error. While on a personal machine (noncorporate) within WSL 2 it works!

I believe it is a self-signed development certificate-related issue for Linux distros as explained in this blog. Thank you for all the help!

@jscottPTC
Copy link

@aalali I am also running into that problem. My environment is: OS - Ubuntu 20.04 in WSL 2, dotnet sdk - 5.0.102 and 5.0.302 (I have tried to fix this issue by downloading an old version of the sdk). Following the instructions in the blog you referenced didn't seem to fix it.

@aalali
Copy link

aalali commented Aug 26, 2021

@jscottPTC sorry just saw this, hope you have it solved by now! Anyway, I solved this problem back then by importing my company's active certificate into the WSL 2 Linux distro, and that is it. You can grab the certificate in Windows from the certificates store and then import it into Linux.

@jscottPTC
Copy link

jscottPTC commented Aug 27, 2021

Hi @aalali yes I was able to "solve" it. I just set up a new distro in wsl.

knocte added a commit to knocte/FSharpLint that referenced this issue Sep 17, 2021
knocte added a commit to nblockchain/fantomless that referenced this issue Sep 20, 2021
There's an intermittent build issue on macOS, which seems related to:
NuGet/Home#10491 (comment)

Error was:
/Users/runner/.dotnet/sdk/5.0.102/NuGet.targets(131,5): warning : The folder '/Users/runner/.nuget/packages/netstandard.library/lib' contains an invalid version. [/Users/runner/work/fantomless/fantomless/fantomas.sln]
/Users/runner/.dotnet/sdk/5.0.102/NuGet.targets(131,5): warning : The folder '/Users/runner/.nuget/packages/netstandard.library/build' contains an invalid version. [/Users/runner/work/fantomless/fantomless/fantomas.sln]
/Users/runner/work/fantomless/fantomless/src/Fantomas.CoreGlobalTool.Tests/Fantomas.CoreGlobalTool.Tests.fsproj : warning NU3028: Package 'NETStandard.Library 2.0.0' from source 'https://api.nuget.org/v3/index.json': The repository primary signature's timestamp found a chain building issue: ExplicitDistrust: The trust setting for this policy was set to Deny. [/Users/runner/work/fantomless/fantomless/fantomas.sln]
/Users/runner/work/fantomless/fantomless/src/Fantomas.CoreGlobalTool.Tests/Fantomas.CoreGlobalTool.Tests.fsproj : error NU3037: Package 'NETStandard.Library 2.0.0' from source 'https://api.nuget.org/v3/index.json': The repository primary signature validity period has expired. [/Users/runner/work/fantomless/fantomless/fantomas.sln]
/Users/runner/work/fantomless/fantomless/src/Fantomas.Tests/Fantomas.Tests.fsproj : warning NU3028: Package 'NETStandard.Library 2.0.0' from source 'https://api.nuget.org/v3/index.json': The repository primary signature's timestamp found a chain building issue: ExplicitDistrust: The trust setting for this policy was set to Deny. [/Users/runner/work/fantomless/fantomless/fantomas.sln]
/Users/runner/work/fantomless/fantomless/src/Fantomas.Tests/Fantomas.Tests.fsproj : error NU3037: Package 'NETStandard.Library 2.0.0' from source 'https://api.nuget.org/v3/index.json': The repository primary signature validity period has expired. [/Users/runner/work/fantomless/fantomless/fantomas.sln]
  Restored /Users/runner/work/fantomless/fantomless/src/Fantomas/Fantomas.fsproj (in 1.04 sec).
  Failed to restore /Users/runner/work/fantomless/fantomless/src/Fantomas.CoreGlobalTool.Tests/Fantomas.CoreGlobalTool.Tests.fsproj (in 1.04 sec).
  Failed to restore /Users/runner/work/fantomless/fantomless/src/Fantomas.Tests/Fantomas.Tests.fsproj (in 1.04 sec).
  Restored /Users/runner/work/fantomless/fantomless/src/Fantomas.Extras/Fantomas.Extras.fsproj (in 82 ms).
  Restored /Users/runner/work/fantomless/fantomless/src/Fantomas.CoreGlobalTool/Fantomas.CoreGlobalTool.fsproj (in 126 ms).
  Restored /Users/runner/work/fantomless/fantomless/src/Fantomas.Benchmarks/Fantomas.Benchmarks.fsproj (in 233 ms).

Build FAILED.

/Users/runner/.dotnet/sdk/5.0.102/NuGet.targets(131,5): warning : The folder '/Users/runner/.nuget/packages/netstandard.library/lib' contains an invalid version. [/Users/runner/work/fantomless/fantomless/fantomas.sln]
/Users/runner/.dotnet/sdk/5.0.102/NuGet.targets(131,5): warning : The folder '/Users/runner/.nuget/packages/netstandard.library/build' contains an invalid version. [/Users/runner/work/fantomless/fantomless/fantomas.sln]
/Users/runner/work/fantomless/fantomless/src/Fantomas.CoreGlobalTool.Tests/Fantomas.CoreGlobalTool.Tests.fsproj : warning NU3028: Package 'NETStandard.Library 2.0.0' from source 'https://api.nuget.org/v3/index.json': The repository primary signature's timestamp found a chain building issue: ExplicitDistrust: The trust setting for this policy was set to Deny. [/Users/runner/work/fantomless/fantomless/fantomas.sln]
/Users/runner/work/fantomless/fantomless/src/Fantomas.Tests/Fantomas.Tests.fsproj : warning NU3028: Package 'NETStandard.Library 2.0.0' from source 'https://api.nuget.org/v3/index.json': The repository primary signature's timestamp found a chain building issue: ExplicitDistrust: The trust setting for this policy was set to Deny. [/Users/runner/work/fantomless/fantomless/fantomas.sln]
/Users/runner/work/fantomless/fantomless/src/Fantomas.CoreGlobalTool.Tests/Fantomas.CoreGlobalTool.Tests.fsproj : error NU3037: Package 'NETStandard.Library 2.0.0' from source 'https://api.nuget.org/v3/index.json': The repository primary signature validity period has expired. [/Users/runner/work/fantomless/fantomless/fantomas.sln]
/Users/runner/work/fantomless/fantomless/src/Fantomas.Tests/Fantomas.Tests.fsproj : error NU3037: Package 'NETStandard.Library 2.0.0' from source 'https://api.nuget.org/v3/index.json': The repository primary signature validity period has expired. [/Users/runner/work/fantomless/fantomless/fantomas.sln]
    4 Warning(s)
    2 Error(s)

Time Elapsed 00:00:08.42
RestoreTask: /Users/runner/.dotnet/sdk/5.0.102/NuGet.targets(131,5): warning : The folder '/Users/runner/.nuget/packages/netstandard.library/lib' contains an invalid version.
RestoreTask: /Users/runner/.dotnet/sdk/5.0.102/NuGet.targets(131,5): warning : The folder '/Users/runner/.nuget/packages/netstandard.library/build' contains an invalid version.
RestoreTask: /Users/runner/work/fantomless/fantomless/src/Fantomas.CoreGlobalTool.Tests/Fantomas.CoreGlobalTool.Tests.fsproj(0,0): warning NU3028: Package 'NETStandard.Library 2.0.0' from source 'https://api.nuget.org/v3/index.json': The repository primary signature's timestamp found a chain building issue: ExplicitDistrust: The trust setting for this policy was set to Deny.
RestoreTask: /Users/runner/work/fantomless/fantomless/src/Fantomas.Tests/Fantomas.Tests.fsproj(0,0): warning NU3028: Package 'NETStandard.Library 2.0.0' from source 'https://api.nuget.org/v3/index.json': The repository primary signature's timestamp found a chain building issue: ExplicitDistrust: The trust setting for this policy was set to Deny.
RestoreTask: /Users/runner/work/fantomless/fantomless/src/Fantomas.CoreGlobalTool.Tests/Fantomas.CoreGlobalTool.Tests.fsproj(0,0): error NU3037: Package 'NETStandard.Library 2.0.0' from source 'https://api.nuget.org/v3/index.json': The repository primary signature validity period has expired.
RestoreTask: /Users/runner/work/fantomless/fantomless/src/Fantomas.Tests/Fantomas.Tests.fsproj(0,0): error NU3037: Package 'NETStandard.Library 2.0.0' from source 'https://api.nuget.org/v3/index.json': The repository primary signature validity period has expired.
Finished (Failed) 'DotNet:build' in 00:00:10.6671433
Finished (Failed) 'Build' in 00:00:10.6719365

Build            00:00:10.6716931   (Exception of type 'Fake.DotNet.MSBuildException' was thrown.)
---------------------------------------------------------------------
UnitTests        00:00:00           (skipped)
Build Time Report
Benchmark        00:00:00           (skipped)
---------------------------------------------------------------------
Pack             00:00:00           (skipped)
Target           Duration
All              00:00:00           (skipped)
------           --------
Status:          Failure
Clean            00:00:00.0052406
ProjectVersion   00:00:00.0091144
CheckFormat      00:00:25.0205896
Total:           00:00:35.8285962
---------------------------------------------------------------------
Script reported an error:
-> BuildFailedException: Target 'Build' failed.
-> One or more errors occurred. (Exception of type 'Fake.DotNet.MSBuildException' was thrown.)
-> MSBuildException: Exception of type 'Fake.DotNet.MSBuildException' was thrown.
Hint: To further diagnose the problem you can run fake in verbose mode `fake -v run ...` or set the 'FAKE_DETAILED_ERRORS' environment variable to 'true'
Hint: Could not find a version in your paket.dependencies file, consider adding 'version 5.257.0' at the top of your dependencies file (/Users/runner/work/fantomless/fantomless/paket.dependencies).
Read fsprojects/FAKE#2193 for details.
knocte added a commit to nblockchain/fantomless that referenced this issue Sep 20, 2021
There was an intermittent build issue on macOS, which seems related to:
NuGet/Home#10491 (comment)
(upgrading to 5.0.202 already fixes this problem, but at the time
of writing this, 5.0.300 already exists so let's just upgrade to
this version).

Error was:
/Users/runner/.dotnet/sdk/5.0.102/NuGet.targets(131,5): warning : The folder '/Users/runner/.nuget/packages/netstandard.library/lib' contains an invalid version. [/Users/runner/work/fantomless/fantomless/fantomas.sln]
/Users/runner/.dotnet/sdk/5.0.102/NuGet.targets(131,5): warning : The folder '/Users/runner/.nuget/packages/netstandard.library/build' contains an invalid version. [/Users/runner/work/fantomless/fantomless/fantomas.sln]
/Users/runner/work/fantomless/fantomless/src/Fantomas.CoreGlobalTool.Tests/Fantomas.CoreGlobalTool.Tests.fsproj : warning NU3028: Package 'NETStandard.Library 2.0.0' from source 'https://api.nuget.org/v3/index.json': The repository primary signature's timestamp found a chain building issue: ExplicitDistrust: The trust setting for this policy was set to Deny. [/Users/runner/work/fantomless/fantomless/fantomas.sln]
/Users/runner/work/fantomless/fantomless/src/Fantomas.CoreGlobalTool.Tests/Fantomas.CoreGlobalTool.Tests.fsproj : error NU3037: Package 'NETStandard.Library 2.0.0' from source 'https://api.nuget.org/v3/index.json': The repository primary signature validity period has expired. [/Users/runner/work/fantomless/fantomless/fantomas.sln]
/Users/runner/work/fantomless/fantomless/src/Fantomas.Tests/Fantomas.Tests.fsproj : warning NU3028: Package 'NETStandard.Library 2.0.0' from source 'https://api.nuget.org/v3/index.json': The repository primary signature's timestamp found a chain building issue: ExplicitDistrust: The trust setting for this policy was set to Deny. [/Users/runner/work/fantomless/fantomless/fantomas.sln]
/Users/runner/work/fantomless/fantomless/src/Fantomas.Tests/Fantomas.Tests.fsproj : error NU3037: Package 'NETStandard.Library 2.0.0' from source 'https://api.nuget.org/v3/index.json': The repository primary signature validity period has expired. [/Users/runner/work/fantomless/fantomless/fantomas.sln]
  Restored /Users/runner/work/fantomless/fantomless/src/Fantomas/Fantomas.fsproj (in 1.04 sec).
  Failed to restore /Users/runner/work/fantomless/fantomless/src/Fantomas.CoreGlobalTool.Tests/Fantomas.CoreGlobalTool.Tests.fsproj (in 1.04 sec).
  Failed to restore /Users/runner/work/fantomless/fantomless/src/Fantomas.Tests/Fantomas.Tests.fsproj (in 1.04 sec).
  Restored /Users/runner/work/fantomless/fantomless/src/Fantomas.Extras/Fantomas.Extras.fsproj (in 82 ms).
  Restored /Users/runner/work/fantomless/fantomless/src/Fantomas.CoreGlobalTool/Fantomas.CoreGlobalTool.fsproj (in 126 ms).
  Restored /Users/runner/work/fantomless/fantomless/src/Fantomas.Benchmarks/Fantomas.Benchmarks.fsproj (in 233 ms).

Build FAILED.

/Users/runner/.dotnet/sdk/5.0.102/NuGet.targets(131,5): warning : The folder '/Users/runner/.nuget/packages/netstandard.library/lib' contains an invalid version. [/Users/runner/work/fantomless/fantomless/fantomas.sln]
/Users/runner/.dotnet/sdk/5.0.102/NuGet.targets(131,5): warning : The folder '/Users/runner/.nuget/packages/netstandard.library/build' contains an invalid version. [/Users/runner/work/fantomless/fantomless/fantomas.sln]
/Users/runner/work/fantomless/fantomless/src/Fantomas.CoreGlobalTool.Tests/Fantomas.CoreGlobalTool.Tests.fsproj : warning NU3028: Package 'NETStandard.Library 2.0.0' from source 'https://api.nuget.org/v3/index.json': The repository primary signature's timestamp found a chain building issue: ExplicitDistrust: The trust setting for this policy was set to Deny. [/Users/runner/work/fantomless/fantomless/fantomas.sln]
/Users/runner/work/fantomless/fantomless/src/Fantomas.Tests/Fantomas.Tests.fsproj : warning NU3028: Package 'NETStandard.Library 2.0.0' from source 'https://api.nuget.org/v3/index.json': The repository primary signature's timestamp found a chain building issue: ExplicitDistrust: The trust setting for this policy was set to Deny. [/Users/runner/work/fantomless/fantomless/fantomas.sln]
/Users/runner/work/fantomless/fantomless/src/Fantomas.CoreGlobalTool.Tests/Fantomas.CoreGlobalTool.Tests.fsproj : error NU3037: Package 'NETStandard.Library 2.0.0' from source 'https://api.nuget.org/v3/index.json': The repository primary signature validity period has expired. [/Users/runner/work/fantomless/fantomless/fantomas.sln]
/Users/runner/work/fantomless/fantomless/src/Fantomas.Tests/Fantomas.Tests.fsproj : error NU3037: Package 'NETStandard.Library 2.0.0' from source 'https://api.nuget.org/v3/index.json': The repository primary signature validity period has expired. [/Users/runner/work/fantomless/fantomless/fantomas.sln]
    4 Warning(s)
    2 Error(s)

Time Elapsed 00:00:08.42
RestoreTask: /Users/runner/.dotnet/sdk/5.0.102/NuGet.targets(131,5): warning : The folder '/Users/runner/.nuget/packages/netstandard.library/lib' contains an invalid version.
RestoreTask: /Users/runner/.dotnet/sdk/5.0.102/NuGet.targets(131,5): warning : The folder '/Users/runner/.nuget/packages/netstandard.library/build' contains an invalid version.
RestoreTask: /Users/runner/work/fantomless/fantomless/src/Fantomas.CoreGlobalTool.Tests/Fantomas.CoreGlobalTool.Tests.fsproj(0,0): warning NU3028: Package 'NETStandard.Library 2.0.0' from source 'https://api.nuget.org/v3/index.json': The repository primary signature's timestamp found a chain building issue: ExplicitDistrust: The trust setting for this policy was set to Deny.
RestoreTask: /Users/runner/work/fantomless/fantomless/src/Fantomas.Tests/Fantomas.Tests.fsproj(0,0): warning NU3028: Package 'NETStandard.Library 2.0.0' from source 'https://api.nuget.org/v3/index.json': The repository primary signature's timestamp found a chain building issue: ExplicitDistrust: The trust setting for this policy was set to Deny.
RestoreTask: /Users/runner/work/fantomless/fantomless/src/Fantomas.CoreGlobalTool.Tests/Fantomas.CoreGlobalTool.Tests.fsproj(0,0): error NU3037: Package 'NETStandard.Library 2.0.0' from source 'https://api.nuget.org/v3/index.json': The repository primary signature validity period has expired.
RestoreTask: /Users/runner/work/fantomless/fantomless/src/Fantomas.Tests/Fantomas.Tests.fsproj(0,0): error NU3037: Package 'NETStandard.Library 2.0.0' from source 'https://api.nuget.org/v3/index.json': The repository primary signature validity period has expired.
Finished (Failed) 'DotNet:build' in 00:00:10.6671433
Finished (Failed) 'Build' in 00:00:10.6719365

Build            00:00:10.6716931   (Exception of type 'Fake.DotNet.MSBuildException' was thrown.)
---------------------------------------------------------------------
UnitTests        00:00:00           (skipped)
Build Time Report
Benchmark        00:00:00           (skipped)
---------------------------------------------------------------------
Pack             00:00:00           (skipped)
Target           Duration
All              00:00:00           (skipped)
------           --------
Status:          Failure
Clean            00:00:00.0052406
ProjectVersion   00:00:00.0091144
CheckFormat      00:00:25.0205896
Total:           00:00:35.8285962
---------------------------------------------------------------------
Script reported an error:
-> BuildFailedException: Target 'Build' failed.
-> One or more errors occurred. (Exception of type 'Fake.DotNet.MSBuildException' was thrown.)
-> MSBuildException: Exception of type 'Fake.DotNet.MSBuildException' was thrown.
Hint: To further diagnose the problem you can run fake in verbose mode `fake -v run ...` or set the 'FAKE_DETAILED_ERRORS' environment variable to 'true'
Hint: Could not find a version in your paket.dependencies file, consider adding 'version 5.257.0' at the top of your dependencies file (/Users/runner/work/fantomless/fantomless/paket.dependencies).
Read fsprojects/FAKE#2193 for details.
knocte added a commit to knocte/FSharpLint that referenced this issue Sep 20, 2021
There was an intermittent build issue on macOS, which seems related to:
NuGet/Home#10491 (comment)

The (intermittent) errors of the macOS build were:

* Step 'Restore tools':

warning NU3028: Package 'Fornax 0.13.1' from source 'https://api.nuget.org/v3/index.json': The repository primary signature's timestamp found a chain building issue: ExplicitDistrust: The trust setting for this policy was set to Deny.
error NU3037: Package 'Fornax 0.13.1' from source 'https://api.nuget.org/v3/index.json': The repository primary signature validity period has expired.
warning NU3028: Package 'fake-cli 5.20.4-alpha.1642' from source 'https://api.nuget.org/v3/index.json': The repository primary signature's timestamp found a chain building issue: ExplicitDistrust: The trust setting for this policy was set to Deny.
error NU3037: Package 'fake-cli 5.20.4-alpha.1642' from source 'https://api.nuget.org/v3/index.json': The repository primary signature validity period has expired.
warning NU3028: Package 'dotnet-fsharplint 0.16.1' from source 'https://api.nuget.org/v3/index.json': The repository primary signature's timestamp found a chain building issue: ExplicitDistrust: The trust setting for this policy was set to Deny.
error NU3037: Package 'dotnet-fsharplint 0.16.1' from source 'https://api.nuget.org/v3/index.json': The repository primary signature validity period has expired.
warning NU3028: Package 'Paket 5.252.0' from source 'https://api.nuget.org/v3/index.json': The repository primary signature's timestamp found a chain building issue: ExplicitDistrust: The trust setting for this policy was set to Deny.
error NU3037: Package 'Paket 5.252.0' from source 'https://api.nuget.org/v3/index.json': The repository primary signature validity period has expired.

Package "fake-cli" failed to restore, due to Microsoft.DotNet.ToolPackage.ToolPackageException: The tool package could not be restored.
   at Microsoft.DotNet.Tools.Tool.Install.ProjectRestorer.Restore(FilePath project, PackageLocation packageLocation, String verbosity)
   at Microsoft.DotNet.ToolPackage.ToolPackageInstaller.InstallPackageToExternalManagedLocation(PackageLocation packageLocation, PackageId packageId, VersionRange versionRange, String targetFramework, String verbosity)
   at Microsoft.DotNet.Tools.Tool.Restore.ToolRestoreCommand.InstallPackages(ToolManifestPackage package, Nullable`1 configFile)
Package "paket" failed to restore, due to Microsoft.DotNet.ToolPackage.ToolPackageException: The tool package could not be restored.
   at Microsoft.DotNet.Tools.Tool.Install.ProjectRestorer.Restore(FilePath project, PackageLocation packageLocation, String verbosity)
   at Microsoft.DotNet.ToolPackage.ToolPackageInstaller.InstallPackageToExternalManagedLocation(PackageLocation packageLocation, PackageId packageId, VersionRange versionRange, String targetFramework, String verbosity)
   at Microsoft.DotNet.Tools.Tool.Restore.ToolRestoreCommand.InstallPackages(ToolManifestPackage package, Nullable`1 configFile)
Package "dotnet-fsharplint" failed to restore, due to Microsoft.DotNet.ToolPackage.ToolPackageException: The tool package could not be restored.
   at Microsoft.DotNet.Tools.Tool.Install.ProjectRestorer.Restore(FilePath project, PackageLocation packageLocation, String verbosity)
   at Microsoft.DotNet.ToolPackage.ToolPackageInstaller.InstallPackageToExternalManagedLocation(PackageLocation packageLocation, PackageId packageId, VersionRange versionRange, String targetFramework, String verbosity)
   at Microsoft.DotNet.Tools.Tool.Restore.ToolRestoreCommand.InstallPackages(ToolManifestPackage package, Nullable`1 configFile)
Package "fornax" failed to restore, due to Microsoft.DotNet.ToolPackage.ToolPackageException: The tool package could not be restored.
   at Microsoft.DotNet.Tools.Tool.Install.ProjectRestorer.Restore(FilePath project, PackageLocation packageLocation, String verbosity)
   at Microsoft.DotNet.ToolPackage.ToolPackageInstaller.InstallPackageToExternalManagedLocation(PackageLocation packageLocation, PackageId packageId, VersionRange versionRange, String targetFramework, String verbosity)
   at Microsoft.DotNet.Tools.Tool.Restore.ToolRestoreCommand.InstallPackages(ToolManifestPackage package, Nullable`1 configFile)

Restore failed.
Error: Process completed with exit code 1.

* Step 'Run build':
/Users/runner/work/FSharpLint/FSharpLint/tests/FSharpLint.Console.Tests/bin/Release/net5.0/FSharpLint.Console.Tests.dll (net5.0)
Finished (Success) 'DotNet:test' in 00:00:11.1338241
Starting task 'DotNet:restore': tests/FSharpLint.FunctionalTest.TestedProject/FSharpLint.FunctionalTest.TestedProject.sln
/Users/runner/work/FSharpLint/FSharpLint> "/Users/runner/.dotnet/dotnet"  restore tests/FSharpLint.FunctionalTest.TestedProject/FSharpLint.FunctionalTest.TestedProject.sln /clp:ForceConsoleColor /bl:/var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/tmpoIYOVJ.tmp.binlog (In: false, Out: false, Err: false)
/Users/runner/.dotnet/sdk/5.0.100/MSBuild.dll -nologo -distributedlogger:Microsoft.DotNet.Tools.MSBuild.MSBuildLogger,/Users/runner/.dotnet/sdk/5.0.100/dotnet.dll*Microsoft.DotNet.Tools.MSBuild.MSBuildForwardingLogger,/Users/runner/.dotnet/sdk/5.0.100/dotnet.dll -maxcpucount -target:Restore -verbosity:m /bl:/var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/tmpoIYOVJ.tmp.binlog /clp:ForceConsoleColor tests/FSharpLint.FunctionalTest.TestedProject/FSharpLint.FunctionalTest.TestedProject.sln
  Determining projects to restore...
/Users/runner/work/FSharpLint/FSharpLint/tests/FSharpLint.FunctionalTest.TestedProject/FSharpLint.FunctionalTest.TestedProject.MultiTarget/FSharpLint.FunctionalTest.TestedProject.MultiTarget.fsproj : error NU3028: Package 'Microsoft.NETCore.Platforms 1.1.0' from source 'https://api.nuget.org/v3/index.json': The repository primary signature's timestamp found a chain building issue: ExplicitDistrust: The trust setting for this policy was set to Deny. [/Users/runner/work/FSharpLint/FSharpLint/tests/FSharpLint.FunctionalTest.TestedProject/FSharpLint.FunctionalTest.TestedProject.sln]
/Users/runner/work/FSharpLint/FSharpLint/tests/FSharpLint.FunctionalTest.TestedProject/FSharpLint.FunctionalTest.TestedProject.MultiTarget/FSharpLint.FunctionalTest.TestedProject.MultiTarget.fsproj : error NU3037: Package 'Microsoft.NETCore.Platforms 1.1.0' from source 'https://api.nuget.org/v3/index.json': The repository primary signature validity period has expired. [/Users/runner/work/FSharpLint/FSharpLint/tests/FSharpLint.FunctionalTest.TestedProject/FSharpLint.FunctionalTest.TestedProject.sln]
/Users/runner/work/FSharpLint/FSharpLint/tests/FSharpLint.FunctionalTest.TestedProject/FSharpLint.FunctionalTest.TestedProject.MultiTarget/FSharpLint.FunctionalTest.TestedProject.MultiTarget.fsproj : error NU3028: Package 'Microsoft.AspNetCore.App.Ref 3.1.8' from source 'https://api.nuget.org/v3/index.json': The author primary signature's timestamp found a chain building issue: ExplicitDistrust: The trust setting for this policy was set to Deny. [/Users/runner/work/FSharpLint/FSharpLint/tests/FSharpLint.FunctionalTest.TestedProject/FSharpLint.FunctionalTest.TestedProject.sln]
/Users/runner/work/FSharpLint/FSharpLint/tests/FSharpLint.FunctionalTest.TestedProject/FSharpLint.FunctionalTest.TestedProject.MultiTarget/FSharpLint.FunctionalTest.TestedProject.MultiTarget.fsproj : error NU3037: Package 'Microsoft.AspNetCore.App.Ref 3.1.8' from source 'https://api.nuget.org/v3/index.json': The author primary signature validity period has expired. [/Users/runner/work/FSharpLint/FSharpLint/tests/FSharpLint.FunctionalTest.TestedProject/FSharpLint.FunctionalTest.TestedProject.sln]
/Users/runner/work/FSharpLint/FSharpLint/tests/FSharpLint.FunctionalTest.TestedProject/FSharpLint.FunctionalTest.TestedProject.MultiTarget/FSharpLint.FunctionalTest.TestedProject.MultiTarget.fsproj : error NU3028: Package 'Microsoft.AspNetCore.App.Ref 3.1.8' from source 'https://api.nuget.org/v3/index.json': The repository countersignature's timestamp found a chain building issue: ExplicitDistrust: The trust setting for this policy was set to Deny. [/Users/runner/work/FSharpLint/FSharpLint/tests/FSharpLint.FunctionalTest.TestedProject/FSharpLint.FunctionalTest.TestedProject.sln]
/Users/runner/work/FSharpLint/FSharpLint/tests/FSharpLint.FunctionalTest.TestedProject/FSharpLint.FunctionalTest.TestedProject.MultiTarget/FSharpLint.FunctionalTest.TestedProject.MultiTarget.fsproj : error NU3037: Package 'Microsoft.AspNetCore.App.Ref 3.1.8' from source 'https://api.nuget.org/v3/index.json': The repository countersignature validity period has expired. [/Users/runner/work/FSharpLint/FSharpLint/tests/FSharpLint.FunctionalTest.TestedProject/FSharpLint.FunctionalTest.TestedProject.sln]
/Users/runner/work/FSharpLint/FSharpLint/tests/FSharpLint.FunctionalTest.TestedProject/FSharpLint.FunctionalTest.TestedProject.NetCore/FSharpLint.FunctionalTest.TestedProject.NetCore.fsproj : error NU3028: Package 'Microsoft.AspNetCore.App.Ref 3.1.8' from source 'https://api.nuget.org/v3/index.json': The author primary signature's timestamp found a chain building issue: ExplicitDistrust: The trust setting for this policy was set to Deny. [/Users/runner/work/FSharpLint/FSharpLint/tests/FSharpLint.FunctionalTest.TestedProject/FSharpLint.FunctionalTest.TestedProject.sln]
/Users/runner/work/FSharpLint/FSharpLint/tests/FSharpLint.FunctionalTest.TestedProject/FSharpLint.FunctionalTest.TestedProject.NetCore/FSharpLint.FunctionalTest.TestedProject.NetCore.fsproj : error NU3037: Package 'Microsoft.AspNetCore.App.Ref 3.1.8' from source 'https://api.nuget.org/v3/index.json': The author primary signature validity period has expired. [/Users/runner/work/FSharpLint/FSharpLint/tests/FSharpLint.FunctionalTest.TestedProject/FSharpLint.FunctionalTest.TestedProject.sln]
/Users/runner/work/FSharpLint/FSharpLint/tests/FSharpLint.FunctionalTest.TestedProject/FSharpLint.FunctionalTest.TestedProject.NetCore/FSharpLint.FunctionalTest.TestedProject.NetCore.fsproj : error NU3028: Package 'Microsoft.AspNetCore.App.Ref 3.1.8' from source 'https://api.nuget.org/v3/index.json': The repository countersignature's timestamp found a chain building issue: ExplicitDistrust: The trust setting for this policy was set to Deny. [/Users/runner/work/FSharpLint/FSharpLint/tests/FSharpLint.FunctionalTest.TestedProject/FSharpLint.FunctionalTest.TestedProject.sln]
/Users/runner/work/FSharpLint/FSharpLint/tests/FSharpLint.FunctionalTest.TestedProject/FSharpLint.FunctionalTest.TestedProject.NetCore/FSharpLint.FunctionalTest.TestedProject.NetCore.fsproj : error NU3037: Package 'Microsoft.AspNetCore.App.Ref 3.1.8' from source 'https://api.nuget.org/v3/index.json': The repository countersignature validity period has expired. [/Users/runner/work/FSharpLint/FSharpLint/tests/FSharpLint.FunctionalTest.TestedProject/FSharpLint.FunctionalTest.TestedProject.sln]
  Failed to restore /Users/runner/work/FSharpLint/FSharpLint/tests/FSharpLint.FunctionalTest.TestedProject/FSharpLint.FunctionalTest.TestedProject.MultiTarget/FSharpLint.FunctionalTest.TestedProject.MultiTarget.fsproj (in 663 ms).
  Failed to restore /Users/runner/work/FSharpLint/FSharpLint/tests/FSharpLint.FunctionalTest.TestedProject/FSharpLint.FunctionalTest.TestedProject.NetCore/FSharpLint.FunctionalTest.TestedProject.NetCore.fsproj (in 663 ms).
RestoreTask: /Users/runner/work/FSharpLint/FSharpLint/tests/FSharpLint.FunctionalTest.TestedProject/FSharpLint.FunctionalTest.TestedProject.MultiTarget/FSharpLint.FunctionalTest.TestedProject.MultiTarget.fsproj(0,0): error NU3028: Package 'Microsoft.NETCore.Platforms 1.1.0' from source 'https://api.nuget.org/v3/index.json': The repository primary signature's timestamp found a chain building issue: ExplicitDistrust: The trust setting for this policy was set to Deny.
RestoreTask: /Users/runner/work/FSharpLint/FSharpLint/tests/FSharpLint.FunctionalTest.TestedProject/FSharpLint.FunctionalTest.TestedProject.MultiTarget/FSharpLint.FunctionalTest.TestedProject.MultiTarget.fsproj(0,0): error NU3037: Package 'Microsoft.NETCore.Platforms 1.1.0' from source 'https://api.nuget.org/v3/index.json': The repository primary signature validity period has expired.
RestoreTask: /Users/runner/work/FSharpLint/FSharpLint/tests/FSharpLint.FunctionalTest.TestedProject/FSharpLint.FunctionalTest.TestedProject.MultiTarget/FSharpLint.FunctionalTest.TestedProject.MultiTarget.fsproj(0,0): error NU3028: Package 'Microsoft.AspNetCore.App.Ref 3.1.8' from source 'https://api.nuget.org/v3/index.json': The author primary signature's timestamp found a chain building issue: ExplicitDistrust: The trust setting for this policy was set to Deny.
RestoreTask: /Users/runner/work/FSharpLint/FSharpLint/tests/FSharpLint.FunctionalTest.TestedProject/FSharpLint.FunctionalTest.TestedProject.MultiTarget/FSharpLint.FunctionalTest.TestedProject.MultiTarget.fsproj(0,0): error NU3037: Package 'Microsoft.AspNetCore.App.Ref 3.1.8' from source 'https://api.nuget.org/v3/index.json': The author primary signature validity period has expired.
RestoreTask: /Users/runner/work/FSharpLint/FSharpLint/tests/FSharpLint.FunctionalTest.TestedProject/FSharpLint.FunctionalTest.TestedProject.MultiTarget/FSharpLint.FunctionalTest.TestedProject.MultiTarget.fsproj(0,0): error NU3028: Package 'Microsoft.AspNetCore.App.Ref 3.1.8' from source 'https://api.nuget.org/v3/index.json': The repository countersignature's timestamp found a chain building issue: ExplicitDistrust: The trust setting for this policy was set to Deny.
RestoreTask: /Users/runner/work/FSharpLint/FSharpLint/tests/FSharpLint.FunctionalTest.TestedProject/FSharpLint.FunctionalTest.TestedProject.MultiTarget/FSharpLint.FunctionalTest.TestedProject.MultiTarget.fsproj(0,0): error NU3037: Package 'Microsoft.AspNetCore.App.Ref 3.1.8' from source 'https://api.nuget.org/v3/index.json': The repository countersignature validity period has expired.
RestoreTask: /Users/runner/work/FSharpLint/FSharpLint/tests/FSharpLint.FunctionalTest.TestedProject/FSharpLint.FunctionalTest.TestedProject.NetCore/FSharpLint.FunctionalTest.TestedProject.NetCore.fsproj(0,0): error NU3028: Package 'Microsoft.AspNetCore.App.Ref 3.1.8' from source 'https://api.nuget.org/v3/index.json': The author primary signature's timestamp found a chain building issue: ExplicitDistrust: The trust setting for this policy was set to Deny.
RestoreTask: /Users/runner/work/FSharpLint/FSharpLint/tests/FSharpLint.FunctionalTest.TestedProject/FSharpLint.FunctionalTest.TestedProject.NetCore/FSharpLint.FunctionalTest.TestedProject.NetCore.fsproj(0,0): error NU3037: Package 'Microsoft.AspNetCore.App.Ref 3.1.8' from source 'https://api.nuget.org/v3/index.json': The author primary signature validity period has expired.
RestoreTask: /Users/runner/work/FSharpLint/FSharpLint/tests/FSharpLint.FunctionalTest.TestedProject/FSharpLint.FunctionalTest.TestedProject.NetCore/FSharpLint.FunctionalTest.TestedProject.NetCore.fsproj(0,0): error NU3028: Package 'Microsoft.AspNetCore.App.Ref 3.1.8' from source 'https://api.nuget.org/v3/index.json': The repository countersignature's timestamp found a chain building issue: ExplicitDistrust: The trust setting for this policy was set to Deny.
RestoreTask: /Users/runner/work/FSharpLint/FSharpLint/tests/FSharpLint.FunctionalTest.TestedProject/FSharpLint.FunctionalTest.TestedProject.NetCore/FSharpLint.FunctionalTest.TestedProject.NetCore.fsproj(0,0): error NU3037: Package 'Microsoft.AspNetCore.App.Ref 3.1.8' from source 'https://api.nuget.org/v3/index.json': The repository countersignature validity period has expired.
Finished (Failed) 'DotNet:restore' in 00:00:02.1316696
Finished (Failed) 'Test' in 00:01:40.7375376

---------------------------------------------------------------------
Build Time Report
---------------------------------------------------------------------
Target     Duration
------     --------
Clean      00:00:00.0059468
Build      00:00:31.4180335
Test       00:01:40.7373066   (Exception of type 'Fake.DotNet.MSBuildException' was thrown.)
Total:     00:02:12.2927884
Status:    Failure
---------------------------------------------------------------------
Script reported an error:
-> BuildFailedException: Target 'Test' failed.
-> One or more errors occurred. (Exception of type 'Fake.DotNet.MSBuildException' was thrown.)
-> MSBuildException: Exception of type 'Fake.DotNet.MSBuildException' was thrown.
Hint: To further diagnose the problem you can run fake in verbose mode `fake -v run ...` or set the 'FAKE_DETAILED_ERRORS' environment variable to 'true'
Hint: Could not find a version in your paket.dependencies file, consider adding 'version 5.257.0' at the top of your dependencies file (/Users/runner/work/FSharpLint/FSharpLint/paket.dependencies).
Read fsprojects/FAKE#2193 for details.
knocte added a commit to knocte/FSharpLint that referenced this issue Sep 20, 2021
There was an intermittent build issue on macOS, which seems related to:
NuGet/Home#10491 (comment)

The (intermittent) errors of the macOS build were:

* Step 'Restore tools':

warning NU3028: Package 'Fornax 0.13.1' from source 'https://api.nuget.org/v3/index.json': The repository primary signature's timestamp found a chain building issue: ExplicitDistrust: The trust setting for this policy was set to Deny.
error NU3037: Package 'Fornax 0.13.1' from source 'https://api.nuget.org/v3/index.json': The repository primary signature validity period has expired.
warning NU3028: Package 'fake-cli 5.20.4-alpha.1642' from source 'https://api.nuget.org/v3/index.json': The repository primary signature's timestamp found a chain building issue: ExplicitDistrust: The trust setting for this policy was set to Deny.
error NU3037: Package 'fake-cli 5.20.4-alpha.1642' from source 'https://api.nuget.org/v3/index.json': The repository primary signature validity period has expired.
warning NU3028: Package 'dotnet-fsharplint 0.16.1' from source 'https://api.nuget.org/v3/index.json': The repository primary signature's timestamp found a chain building issue: ExplicitDistrust: The trust setting for this policy was set to Deny.
error NU3037: Package 'dotnet-fsharplint 0.16.1' from source 'https://api.nuget.org/v3/index.json': The repository primary signature validity period has expired.
warning NU3028: Package 'Paket 5.252.0' from source 'https://api.nuget.org/v3/index.json': The repository primary signature's timestamp found a chain building issue: ExplicitDistrust: The trust setting for this policy was set to Deny.
error NU3037: Package 'Paket 5.252.0' from source 'https://api.nuget.org/v3/index.json': The repository primary signature validity period has expired.

Package "fake-cli" failed to restore, due to Microsoft.DotNet.ToolPackage.ToolPackageException: The tool package could not be restored.
   at Microsoft.DotNet.Tools.Tool.Install.ProjectRestorer.Restore(FilePath project, PackageLocation packageLocation, String verbosity)
   at Microsoft.DotNet.ToolPackage.ToolPackageInstaller.InstallPackageToExternalManagedLocation(PackageLocation packageLocation, PackageId packageId, VersionRange versionRange, String targetFramework, String verbosity)
   at Microsoft.DotNet.Tools.Tool.Restore.ToolRestoreCommand.InstallPackages(ToolManifestPackage package, Nullable`1 configFile)
Package "paket" failed to restore, due to Microsoft.DotNet.ToolPackage.ToolPackageException: The tool package could not be restored.
   at Microsoft.DotNet.Tools.Tool.Install.ProjectRestorer.Restore(FilePath project, PackageLocation packageLocation, String verbosity)
   at Microsoft.DotNet.ToolPackage.ToolPackageInstaller.InstallPackageToExternalManagedLocation(PackageLocation packageLocation, PackageId packageId, VersionRange versionRange, String targetFramework, String verbosity)
   at Microsoft.DotNet.Tools.Tool.Restore.ToolRestoreCommand.InstallPackages(ToolManifestPackage package, Nullable`1 configFile)
Package "dotnet-fsharplint" failed to restore, due to Microsoft.DotNet.ToolPackage.ToolPackageException: The tool package could not be restored.
   at Microsoft.DotNet.Tools.Tool.Install.ProjectRestorer.Restore(FilePath project, PackageLocation packageLocation, String verbosity)
   at Microsoft.DotNet.ToolPackage.ToolPackageInstaller.InstallPackageToExternalManagedLocation(PackageLocation packageLocation, PackageId packageId, VersionRange versionRange, String targetFramework, String verbosity)
   at Microsoft.DotNet.Tools.Tool.Restore.ToolRestoreCommand.InstallPackages(ToolManifestPackage package, Nullable`1 configFile)
Package "fornax" failed to restore, due to Microsoft.DotNet.ToolPackage.ToolPackageException: The tool package could not be restored.
   at Microsoft.DotNet.Tools.Tool.Install.ProjectRestorer.Restore(FilePath project, PackageLocation packageLocation, String verbosity)
   at Microsoft.DotNet.ToolPackage.ToolPackageInstaller.InstallPackageToExternalManagedLocation(PackageLocation packageLocation, PackageId packageId, VersionRange versionRange, String targetFramework, String verbosity)
   at Microsoft.DotNet.Tools.Tool.Restore.ToolRestoreCommand.InstallPackages(ToolManifestPackage package, Nullable`1 configFile)

Restore failed.
Error: Process completed with exit code 1.

* Step 'Run build':
/Users/runner/work/FSharpLint/FSharpLint/tests/FSharpLint.Console.Tests/bin/Release/net5.0/FSharpLint.Console.Tests.dll (net5.0)
Finished (Success) 'DotNet:test' in 00:00:11.1338241
Starting task 'DotNet:restore': tests/FSharpLint.FunctionalTest.TestedProject/FSharpLint.FunctionalTest.TestedProject.sln
/Users/runner/work/FSharpLint/FSharpLint> "/Users/runner/.dotnet/dotnet"  restore tests/FSharpLint.FunctionalTest.TestedProject/FSharpLint.FunctionalTest.TestedProject.sln /clp:ForceConsoleColor /bl:/var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/tmpoIYOVJ.tmp.binlog (In: false, Out: false, Err: false)
/Users/runner/.dotnet/sdk/5.0.100/MSBuild.dll -nologo -distributedlogger:Microsoft.DotNet.Tools.MSBuild.MSBuildLogger,/Users/runner/.dotnet/sdk/5.0.100/dotnet.dll*Microsoft.DotNet.Tools.MSBuild.MSBuildForwardingLogger,/Users/runner/.dotnet/sdk/5.0.100/dotnet.dll -maxcpucount -target:Restore -verbosity:m /bl:/var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/tmpoIYOVJ.tmp.binlog /clp:ForceConsoleColor tests/FSharpLint.FunctionalTest.TestedProject/FSharpLint.FunctionalTest.TestedProject.sln
  Determining projects to restore...
/Users/runner/work/FSharpLint/FSharpLint/tests/FSharpLint.FunctionalTest.TestedProject/FSharpLint.FunctionalTest.TestedProject.MultiTarget/FSharpLint.FunctionalTest.TestedProject.MultiTarget.fsproj : error NU3028: Package 'Microsoft.NETCore.Platforms 1.1.0' from source 'https://api.nuget.org/v3/index.json': The repository primary signature's timestamp found a chain building issue: ExplicitDistrust: The trust setting for this policy was set to Deny. [/Users/runner/work/FSharpLint/FSharpLint/tests/FSharpLint.FunctionalTest.TestedProject/FSharpLint.FunctionalTest.TestedProject.sln]
/Users/runner/work/FSharpLint/FSharpLint/tests/FSharpLint.FunctionalTest.TestedProject/FSharpLint.FunctionalTest.TestedProject.MultiTarget/FSharpLint.FunctionalTest.TestedProject.MultiTarget.fsproj : error NU3037: Package 'Microsoft.NETCore.Platforms 1.1.0' from source 'https://api.nuget.org/v3/index.json': The repository primary signature validity period has expired. [/Users/runner/work/FSharpLint/FSharpLint/tests/FSharpLint.FunctionalTest.TestedProject/FSharpLint.FunctionalTest.TestedProject.sln]
/Users/runner/work/FSharpLint/FSharpLint/tests/FSharpLint.FunctionalTest.TestedProject/FSharpLint.FunctionalTest.TestedProject.MultiTarget/FSharpLint.FunctionalTest.TestedProject.MultiTarget.fsproj : error NU3028: Package 'Microsoft.AspNetCore.App.Ref 3.1.8' from source 'https://api.nuget.org/v3/index.json': The author primary signature's timestamp found a chain building issue: ExplicitDistrust: The trust setting for this policy was set to Deny. [/Users/runner/work/FSharpLint/FSharpLint/tests/FSharpLint.FunctionalTest.TestedProject/FSharpLint.FunctionalTest.TestedProject.sln]
/Users/runner/work/FSharpLint/FSharpLint/tests/FSharpLint.FunctionalTest.TestedProject/FSharpLint.FunctionalTest.TestedProject.MultiTarget/FSharpLint.FunctionalTest.TestedProject.MultiTarget.fsproj : error NU3037: Package 'Microsoft.AspNetCore.App.Ref 3.1.8' from source 'https://api.nuget.org/v3/index.json': The author primary signature validity period has expired. [/Users/runner/work/FSharpLint/FSharpLint/tests/FSharpLint.FunctionalTest.TestedProject/FSharpLint.FunctionalTest.TestedProject.sln]
/Users/runner/work/FSharpLint/FSharpLint/tests/FSharpLint.FunctionalTest.TestedProject/FSharpLint.FunctionalTest.TestedProject.MultiTarget/FSharpLint.FunctionalTest.TestedProject.MultiTarget.fsproj : error NU3028: Package 'Microsoft.AspNetCore.App.Ref 3.1.8' from source 'https://api.nuget.org/v3/index.json': The repository countersignature's timestamp found a chain building issue: ExplicitDistrust: The trust setting for this policy was set to Deny. [/Users/runner/work/FSharpLint/FSharpLint/tests/FSharpLint.FunctionalTest.TestedProject/FSharpLint.FunctionalTest.TestedProject.sln]
/Users/runner/work/FSharpLint/FSharpLint/tests/FSharpLint.FunctionalTest.TestedProject/FSharpLint.FunctionalTest.TestedProject.MultiTarget/FSharpLint.FunctionalTest.TestedProject.MultiTarget.fsproj : error NU3037: Package 'Microsoft.AspNetCore.App.Ref 3.1.8' from source 'https://api.nuget.org/v3/index.json': The repository countersignature validity period has expired. [/Users/runner/work/FSharpLint/FSharpLint/tests/FSharpLint.FunctionalTest.TestedProject/FSharpLint.FunctionalTest.TestedProject.sln]
/Users/runner/work/FSharpLint/FSharpLint/tests/FSharpLint.FunctionalTest.TestedProject/FSharpLint.FunctionalTest.TestedProject.NetCore/FSharpLint.FunctionalTest.TestedProject.NetCore.fsproj : error NU3028: Package 'Microsoft.AspNetCore.App.Ref 3.1.8' from source 'https://api.nuget.org/v3/index.json': The author primary signature's timestamp found a chain building issue: ExplicitDistrust: The trust setting for this policy was set to Deny. [/Users/runner/work/FSharpLint/FSharpLint/tests/FSharpLint.FunctionalTest.TestedProject/FSharpLint.FunctionalTest.TestedProject.sln]
/Users/runner/work/FSharpLint/FSharpLint/tests/FSharpLint.FunctionalTest.TestedProject/FSharpLint.FunctionalTest.TestedProject.NetCore/FSharpLint.FunctionalTest.TestedProject.NetCore.fsproj : error NU3037: Package 'Microsoft.AspNetCore.App.Ref 3.1.8' from source 'https://api.nuget.org/v3/index.json': The author primary signature validity period has expired. [/Users/runner/work/FSharpLint/FSharpLint/tests/FSharpLint.FunctionalTest.TestedProject/FSharpLint.FunctionalTest.TestedProject.sln]
/Users/runner/work/FSharpLint/FSharpLint/tests/FSharpLint.FunctionalTest.TestedProject/FSharpLint.FunctionalTest.TestedProject.NetCore/FSharpLint.FunctionalTest.TestedProject.NetCore.fsproj : error NU3028: Package 'Microsoft.AspNetCore.App.Ref 3.1.8' from source 'https://api.nuget.org/v3/index.json': The repository countersignature's timestamp found a chain building issue: ExplicitDistrust: The trust setting for this policy was set to Deny. [/Users/runner/work/FSharpLint/FSharpLint/tests/FSharpLint.FunctionalTest.TestedProject/FSharpLint.FunctionalTest.TestedProject.sln]
/Users/runner/work/FSharpLint/FSharpLint/tests/FSharpLint.FunctionalTest.TestedProject/FSharpLint.FunctionalTest.TestedProject.NetCore/FSharpLint.FunctionalTest.TestedProject.NetCore.fsproj : error NU3037: Package 'Microsoft.AspNetCore.App.Ref 3.1.8' from source 'https://api.nuget.org/v3/index.json': The repository countersignature validity period has expired. [/Users/runner/work/FSharpLint/FSharpLint/tests/FSharpLint.FunctionalTest.TestedProject/FSharpLint.FunctionalTest.TestedProject.sln]
  Failed to restore /Users/runner/work/FSharpLint/FSharpLint/tests/FSharpLint.FunctionalTest.TestedProject/FSharpLint.FunctionalTest.TestedProject.MultiTarget/FSharpLint.FunctionalTest.TestedProject.MultiTarget.fsproj (in 663 ms).
  Failed to restore /Users/runner/work/FSharpLint/FSharpLint/tests/FSharpLint.FunctionalTest.TestedProject/FSharpLint.FunctionalTest.TestedProject.NetCore/FSharpLint.FunctionalTest.TestedProject.NetCore.fsproj (in 663 ms).
RestoreTask: /Users/runner/work/FSharpLint/FSharpLint/tests/FSharpLint.FunctionalTest.TestedProject/FSharpLint.FunctionalTest.TestedProject.MultiTarget/FSharpLint.FunctionalTest.TestedProject.MultiTarget.fsproj(0,0): error NU3028: Package 'Microsoft.NETCore.Platforms 1.1.0' from source 'https://api.nuget.org/v3/index.json': The repository primary signature's timestamp found a chain building issue: ExplicitDistrust: The trust setting for this policy was set to Deny.
RestoreTask: /Users/runner/work/FSharpLint/FSharpLint/tests/FSharpLint.FunctionalTest.TestedProject/FSharpLint.FunctionalTest.TestedProject.MultiTarget/FSharpLint.FunctionalTest.TestedProject.MultiTarget.fsproj(0,0): error NU3037: Package 'Microsoft.NETCore.Platforms 1.1.0' from source 'https://api.nuget.org/v3/index.json': The repository primary signature validity period has expired.
RestoreTask: /Users/runner/work/FSharpLint/FSharpLint/tests/FSharpLint.FunctionalTest.TestedProject/FSharpLint.FunctionalTest.TestedProject.MultiTarget/FSharpLint.FunctionalTest.TestedProject.MultiTarget.fsproj(0,0): error NU3028: Package 'Microsoft.AspNetCore.App.Ref 3.1.8' from source 'https://api.nuget.org/v3/index.json': The author primary signature's timestamp found a chain building issue: ExplicitDistrust: The trust setting for this policy was set to Deny.
RestoreTask: /Users/runner/work/FSharpLint/FSharpLint/tests/FSharpLint.FunctionalTest.TestedProject/FSharpLint.FunctionalTest.TestedProject.MultiTarget/FSharpLint.FunctionalTest.TestedProject.MultiTarget.fsproj(0,0): error NU3037: Package 'Microsoft.AspNetCore.App.Ref 3.1.8' from source 'https://api.nuget.org/v3/index.json': The author primary signature validity period has expired.
RestoreTask: /Users/runner/work/FSharpLint/FSharpLint/tests/FSharpLint.FunctionalTest.TestedProject/FSharpLint.FunctionalTest.TestedProject.MultiTarget/FSharpLint.FunctionalTest.TestedProject.MultiTarget.fsproj(0,0): error NU3028: Package 'Microsoft.AspNetCore.App.Ref 3.1.8' from source 'https://api.nuget.org/v3/index.json': The repository countersignature's timestamp found a chain building issue: ExplicitDistrust: The trust setting for this policy was set to Deny.
RestoreTask: /Users/runner/work/FSharpLint/FSharpLint/tests/FSharpLint.FunctionalTest.TestedProject/FSharpLint.FunctionalTest.TestedProject.MultiTarget/FSharpLint.FunctionalTest.TestedProject.MultiTarget.fsproj(0,0): error NU3037: Package 'Microsoft.AspNetCore.App.Ref 3.1.8' from source 'https://api.nuget.org/v3/index.json': The repository countersignature validity period has expired.
RestoreTask: /Users/runner/work/FSharpLint/FSharpLint/tests/FSharpLint.FunctionalTest.TestedProject/FSharpLint.FunctionalTest.TestedProject.NetCore/FSharpLint.FunctionalTest.TestedProject.NetCore.fsproj(0,0): error NU3028: Package 'Microsoft.AspNetCore.App.Ref 3.1.8' from source 'https://api.nuget.org/v3/index.json': The author primary signature's timestamp found a chain building issue: ExplicitDistrust: The trust setting for this policy was set to Deny.
RestoreTask: /Users/runner/work/FSharpLint/FSharpLint/tests/FSharpLint.FunctionalTest.TestedProject/FSharpLint.FunctionalTest.TestedProject.NetCore/FSharpLint.FunctionalTest.TestedProject.NetCore.fsproj(0,0): error NU3037: Package 'Microsoft.AspNetCore.App.Ref 3.1.8' from source 'https://api.nuget.org/v3/index.json': The author primary signature validity period has expired.
RestoreTask: /Users/runner/work/FSharpLint/FSharpLint/tests/FSharpLint.FunctionalTest.TestedProject/FSharpLint.FunctionalTest.TestedProject.NetCore/FSharpLint.FunctionalTest.TestedProject.NetCore.fsproj(0,0): error NU3028: Package 'Microsoft.AspNetCore.App.Ref 3.1.8' from source 'https://api.nuget.org/v3/index.json': The repository countersignature's timestamp found a chain building issue: ExplicitDistrust: The trust setting for this policy was set to Deny.
RestoreTask: /Users/runner/work/FSharpLint/FSharpLint/tests/FSharpLint.FunctionalTest.TestedProject/FSharpLint.FunctionalTest.TestedProject.NetCore/FSharpLint.FunctionalTest.TestedProject.NetCore.fsproj(0,0): error NU3037: Package 'Microsoft.AspNetCore.App.Ref 3.1.8' from source 'https://api.nuget.org/v3/index.json': The repository countersignature validity period has expired.
Finished (Failed) 'DotNet:restore' in 00:00:02.1316696
Finished (Failed) 'Test' in 00:01:40.7375376

---------------------------------------------------------------------
Build Time Report
---------------------------------------------------------------------
Target     Duration
------     --------
Clean      00:00:00.0059468
Build      00:00:31.4180335
Test       00:01:40.7373066   (Exception of type 'Fake.DotNet.MSBuildException' was thrown.)
Total:     00:02:12.2927884
Status:    Failure
---------------------------------------------------------------------
Script reported an error:
-> BuildFailedException: Target 'Test' failed.
-> One or more errors occurred. (Exception of type 'Fake.DotNet.MSBuildException' was thrown.)
-> MSBuildException: Exception of type 'Fake.DotNet.MSBuildException' was thrown.
Hint: To further diagnose the problem you can run fake in verbose mode `fake -v run ...` or set the 'FAKE_DETAILED_ERRORS' environment variable to 'true'
Hint: Could not find a version in your paket.dependencies file, consider adding 'version 5.257.0' at the top of your dependencies file (/Users/runner/work/FSharpLint/FSharpLint/paket.dependencies).
Read fsprojects/FAKE#2193 for details.
duckmatt pushed a commit to fsprojects/FSharpLint that referenced this issue Sep 20, 2021
… fix it (#503)

* CI: bring back macOS lane

It had to be removed in 3837680
because somehow it started failing.

* CI: try dodge NU3037&NU3028 errors (occuring on macOS)

See https://docs.microsoft.com/en-us/nuget/reference/errors-and-warnings/nu3028
and https://docs.microsoft.com/en-us/nuget/reference/errors-and-warnings/nu3037

(The technique to only run a step in a certain OS in GithubActions
was taken from https://stackoverflow.com/a/57948488/544947 )

The (intermittent) errors of the macOS build were:

* Step 'Restore tools':

warning NU3028: Package 'Fornax 0.13.1' from source 'https://api.nuget.org/v3/index.json': The repository primary signature's timestamp found a chain building issue: ExplicitDistrust: The trust setting for this policy was set to Deny.
error NU3037: Package 'Fornax 0.13.1' from source 'https://api.nuget.org/v3/index.json': The repository primary signature validity period has expired.
warning NU3028: Package 'fake-cli 5.20.4-alpha.1642' from source 'https://api.nuget.org/v3/index.json': The repository primary signature's timestamp found a chain building issue: ExplicitDistrust: The trust setting for this policy was set to Deny.
error NU3037: Package 'fake-cli 5.20.4-alpha.1642' from source 'https://api.nuget.org/v3/index.json': The repository primary signature validity period has expired.
warning NU3028: Package 'dotnet-fsharplint 0.16.1' from source 'https://api.nuget.org/v3/index.json': The repository primary signature's timestamp found a chain building issue: ExplicitDistrust: The trust setting for this policy was set to Deny.
error NU3037: Package 'dotnet-fsharplint 0.16.1' from source 'https://api.nuget.org/v3/index.json': The repository primary signature validity period has expired.
warning NU3028: Package 'Paket 5.252.0' from source 'https://api.nuget.org/v3/index.json': The repository primary signature's timestamp found a chain building issue: ExplicitDistrust: The trust setting for this policy was set to Deny.
error NU3037: Package 'Paket 5.252.0' from source 'https://api.nuget.org/v3/index.json': The repository primary signature validity period has expired.

Package "fake-cli" failed to restore, due to Microsoft.DotNet.ToolPackage.ToolPackageException: The tool package could not be restored.
   at Microsoft.DotNet.Tools.Tool.Install.ProjectRestorer.Restore(FilePath project, PackageLocation packageLocation, String verbosity)
   at Microsoft.DotNet.ToolPackage.ToolPackageInstaller.InstallPackageToExternalManagedLocation(PackageLocation packageLocation, PackageId packageId, VersionRange versionRange, String targetFramework, String verbosity)
   at Microsoft.DotNet.Tools.Tool.Restore.ToolRestoreCommand.InstallPackages(ToolManifestPackage package, Nullable`1 configFile)
Package "paket" failed to restore, due to Microsoft.DotNet.ToolPackage.ToolPackageException: The tool package could not be restored.
   at Microsoft.DotNet.Tools.Tool.Install.ProjectRestorer.Restore(FilePath project, PackageLocation packageLocation, String verbosity)
   at Microsoft.DotNet.ToolPackage.ToolPackageInstaller.InstallPackageToExternalManagedLocation(PackageLocation packageLocation, PackageId packageId, VersionRange versionRange, String targetFramework, String verbosity)
   at Microsoft.DotNet.Tools.Tool.Restore.ToolRestoreCommand.InstallPackages(ToolManifestPackage package, Nullable`1 configFile)
Package "dotnet-fsharplint" failed to restore, due to Microsoft.DotNet.ToolPackage.ToolPackageException: The tool package could not be restored.
   at Microsoft.DotNet.Tools.Tool.Install.ProjectRestorer.Restore(FilePath project, PackageLocation packageLocation, String verbosity)
   at Microsoft.DotNet.ToolPackage.ToolPackageInstaller.InstallPackageToExternalManagedLocation(PackageLocation packageLocation, PackageId packageId, VersionRange versionRange, String targetFramework, String verbosity)
   at Microsoft.DotNet.Tools.Tool.Restore.ToolRestoreCommand.InstallPackages(ToolManifestPackage package, Nullable`1 configFile)
Package "fornax" failed to restore, due to Microsoft.DotNet.ToolPackage.ToolPackageException: The tool package could not be restored.
   at Microsoft.DotNet.Tools.Tool.Install.ProjectRestorer.Restore(FilePath project, PackageLocation packageLocation, String verbosity)
   at Microsoft.DotNet.ToolPackage.ToolPackageInstaller.InstallPackageToExternalManagedLocation(PackageLocation packageLocation, PackageId packageId, VersionRange versionRange, String targetFramework, String verbosity)
   at Microsoft.DotNet.Tools.Tool.Restore.ToolRestoreCommand.InstallPackages(ToolManifestPackage package, Nullable`1 configFile)

Restore failed.
Error: Process completed with exit code 1.

* Step 'Run build':
/Users/runner/work/FSharpLint/FSharpLint/tests/FSharpLint.Console.Tests/bin/Release/net5.0/FSharpLint.Console.Tests.dll (net5.0)
Finished (Success) 'DotNet:test' in 00:00:11.1338241
Starting task 'DotNet:restore': tests/FSharpLint.FunctionalTest.TestedProject/FSharpLint.FunctionalTest.TestedProject.sln
/Users/runner/work/FSharpLint/FSharpLint> "/Users/runner/.dotnet/dotnet"  restore tests/FSharpLint.FunctionalTest.TestedProject/FSharpLint.FunctionalTest.TestedProject.sln /clp:ForceConsoleColor /bl:/var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/tmpoIYOVJ.tmp.binlog (In: false, Out: false, Err: false)
/Users/runner/.dotnet/sdk/5.0.100/MSBuild.dll -nologo -distributedlogger:Microsoft.DotNet.Tools.MSBuild.MSBuildLogger,/Users/runner/.dotnet/sdk/5.0.100/dotnet.dll*Microsoft.DotNet.Tools.MSBuild.MSBuildForwardingLogger,/Users/runner/.dotnet/sdk/5.0.100/dotnet.dll -maxcpucount -target:Restore -verbosity:m /bl:/var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/tmpoIYOVJ.tmp.binlog /clp:ForceConsoleColor tests/FSharpLint.FunctionalTest.TestedProject/FSharpLint.FunctionalTest.TestedProject.sln
  Determining projects to restore...
/Users/runner/work/FSharpLint/FSharpLint/tests/FSharpLint.FunctionalTest.TestedProject/FSharpLint.FunctionalTest.TestedProject.MultiTarget/FSharpLint.FunctionalTest.TestedProject.MultiTarget.fsproj : error NU3028: Package 'Microsoft.NETCore.Platforms 1.1.0' from source 'https://api.nuget.org/v3/index.json': The repository primary signature's timestamp found a chain building issue: ExplicitDistrust: The trust setting for this policy was set to Deny. [/Users/runner/work/FSharpLint/FSharpLint/tests/FSharpLint.FunctionalTest.TestedProject/FSharpLint.FunctionalTest.TestedProject.sln]
/Users/runner/work/FSharpLint/FSharpLint/tests/FSharpLint.FunctionalTest.TestedProject/FSharpLint.FunctionalTest.TestedProject.MultiTarget/FSharpLint.FunctionalTest.TestedProject.MultiTarget.fsproj : error NU3037: Package 'Microsoft.NETCore.Platforms 1.1.0' from source 'https://api.nuget.org/v3/index.json': The repository primary signature validity period has expired. [/Users/runner/work/FSharpLint/FSharpLint/tests/FSharpLint.FunctionalTest.TestedProject/FSharpLint.FunctionalTest.TestedProject.sln]
/Users/runner/work/FSharpLint/FSharpLint/tests/FSharpLint.FunctionalTest.TestedProject/FSharpLint.FunctionalTest.TestedProject.MultiTarget/FSharpLint.FunctionalTest.TestedProject.MultiTarget.fsproj : error NU3028: Package 'Microsoft.AspNetCore.App.Ref 3.1.8' from source 'https://api.nuget.org/v3/index.json': The author primary signature's timestamp found a chain building issue: ExplicitDistrust: The trust setting for this policy was set to Deny. [/Users/runner/work/FSharpLint/FSharpLint/tests/FSharpLint.FunctionalTest.TestedProject/FSharpLint.FunctionalTest.TestedProject.sln]
/Users/runner/work/FSharpLint/FSharpLint/tests/FSharpLint.FunctionalTest.TestedProject/FSharpLint.FunctionalTest.TestedProject.MultiTarget/FSharpLint.FunctionalTest.TestedProject.MultiTarget.fsproj : error NU3037: Package 'Microsoft.AspNetCore.App.Ref 3.1.8' from source 'https://api.nuget.org/v3/index.json': The author primary signature validity period has expired. [/Users/runner/work/FSharpLint/FSharpLint/tests/FSharpLint.FunctionalTest.TestedProject/FSharpLint.FunctionalTest.TestedProject.sln]
/Users/runner/work/FSharpLint/FSharpLint/tests/FSharpLint.FunctionalTest.TestedProject/FSharpLint.FunctionalTest.TestedProject.MultiTarget/FSharpLint.FunctionalTest.TestedProject.MultiTarget.fsproj : error NU3028: Package 'Microsoft.AspNetCore.App.Ref 3.1.8' from source 'https://api.nuget.org/v3/index.json': The repository countersignature's timestamp found a chain building issue: ExplicitDistrust: The trust setting for this policy was set to Deny. [/Users/runner/work/FSharpLint/FSharpLint/tests/FSharpLint.FunctionalTest.TestedProject/FSharpLint.FunctionalTest.TestedProject.sln]
/Users/runner/work/FSharpLint/FSharpLint/tests/FSharpLint.FunctionalTest.TestedProject/FSharpLint.FunctionalTest.TestedProject.MultiTarget/FSharpLint.FunctionalTest.TestedProject.MultiTarget.fsproj : error NU3037: Package 'Microsoft.AspNetCore.App.Ref 3.1.8' from source 'https://api.nuget.org/v3/index.json': The repository countersignature validity period has expired. [/Users/runner/work/FSharpLint/FSharpLint/tests/FSharpLint.FunctionalTest.TestedProject/FSharpLint.FunctionalTest.TestedProject.sln]
/Users/runner/work/FSharpLint/FSharpLint/tests/FSharpLint.FunctionalTest.TestedProject/FSharpLint.FunctionalTest.TestedProject.NetCore/FSharpLint.FunctionalTest.TestedProject.NetCore.fsproj : error NU3028: Package 'Microsoft.AspNetCore.App.Ref 3.1.8' from source 'https://api.nuget.org/v3/index.json': The author primary signature's timestamp found a chain building issue: ExplicitDistrust: The trust setting for this policy was set to Deny. [/Users/runner/work/FSharpLint/FSharpLint/tests/FSharpLint.FunctionalTest.TestedProject/FSharpLint.FunctionalTest.TestedProject.sln]
/Users/runner/work/FSharpLint/FSharpLint/tests/FSharpLint.FunctionalTest.TestedProject/FSharpLint.FunctionalTest.TestedProject.NetCore/FSharpLint.FunctionalTest.TestedProject.NetCore.fsproj : error NU3037: Package 'Microsoft.AspNetCore.App.Ref 3.1.8' from source 'https://api.nuget.org/v3/index.json': The author primary signature validity period has expired. [/Users/runner/work/FSharpLint/FSharpLint/tests/FSharpLint.FunctionalTest.TestedProject/FSharpLint.FunctionalTest.TestedProject.sln]
/Users/runner/work/FSharpLint/FSharpLint/tests/FSharpLint.FunctionalTest.TestedProject/FSharpLint.FunctionalTest.TestedProject.NetCore/FSharpLint.FunctionalTest.TestedProject.NetCore.fsproj : error NU3028: Package 'Microsoft.AspNetCore.App.Ref 3.1.8' from source 'https://api.nuget.org/v3/index.json': The repository countersignature's timestamp found a chain building issue: ExplicitDistrust: The trust setting for this policy was set to Deny. [/Users/runner/work/FSharpLint/FSharpLint/tests/FSharpLint.FunctionalTest.TestedProject/FSharpLint.FunctionalTest.TestedProject.sln]
/Users/runner/work/FSharpLint/FSharpLint/tests/FSharpLint.FunctionalTest.TestedProject/FSharpLint.FunctionalTest.TestedProject.NetCore/FSharpLint.FunctionalTest.TestedProject.NetCore.fsproj : error NU3037: Package 'Microsoft.AspNetCore.App.Ref 3.1.8' from source 'https://api.nuget.org/v3/index.json': The repository countersignature validity period has expired. [/Users/runner/work/FSharpLint/FSharpLint/tests/FSharpLint.FunctionalTest.TestedProject/FSharpLint.FunctionalTest.TestedProject.sln]
  Failed to restore /Users/runner/work/FSharpLint/FSharpLint/tests/FSharpLint.FunctionalTest.TestedProject/FSharpLint.FunctionalTest.TestedProject.MultiTarget/FSharpLint.FunctionalTest.TestedProject.MultiTarget.fsproj (in 663 ms).
  Failed to restore /Users/runner/work/FSharpLint/FSharpLint/tests/FSharpLint.FunctionalTest.TestedProject/FSharpLint.FunctionalTest.TestedProject.NetCore/FSharpLint.FunctionalTest.TestedProject.NetCore.fsproj (in 663 ms).
RestoreTask: /Users/runner/work/FSharpLint/FSharpLint/tests/FSharpLint.FunctionalTest.TestedProject/FSharpLint.FunctionalTest.TestedProject.MultiTarget/FSharpLint.FunctionalTest.TestedProject.MultiTarget.fsproj(0,0): error NU3028: Package 'Microsoft.NETCore.Platforms 1.1.0' from source 'https://api.nuget.org/v3/index.json': The repository primary signature's timestamp found a chain building issue: ExplicitDistrust: The trust setting for this policy was set to Deny.
RestoreTask: /Users/runner/work/FSharpLint/FSharpLint/tests/FSharpLint.FunctionalTest.TestedProject/FSharpLint.FunctionalTest.TestedProject.MultiTarget/FSharpLint.FunctionalTest.TestedProject.MultiTarget.fsproj(0,0): error NU3037: Package 'Microsoft.NETCore.Platforms 1.1.0' from source 'https://api.nuget.org/v3/index.json': The repository primary signature validity period has expired.
RestoreTask: /Users/runner/work/FSharpLint/FSharpLint/tests/FSharpLint.FunctionalTest.TestedProject/FSharpLint.FunctionalTest.TestedProject.MultiTarget/FSharpLint.FunctionalTest.TestedProject.MultiTarget.fsproj(0,0): error NU3028: Package 'Microsoft.AspNetCore.App.Ref 3.1.8' from source 'https://api.nuget.org/v3/index.json': The author primary signature's timestamp found a chain building issue: ExplicitDistrust: The trust setting for this policy was set to Deny.
RestoreTask: /Users/runner/work/FSharpLint/FSharpLint/tests/FSharpLint.FunctionalTest.TestedProject/FSharpLint.FunctionalTest.TestedProject.MultiTarget/FSharpLint.FunctionalTest.TestedProject.MultiTarget.fsproj(0,0): error NU3037: Package 'Microsoft.AspNetCore.App.Ref 3.1.8' from source 'https://api.nuget.org/v3/index.json': The author primary signature validity period has expired.
RestoreTask: /Users/runner/work/FSharpLint/FSharpLint/tests/FSharpLint.FunctionalTest.TestedProject/FSharpLint.FunctionalTest.TestedProject.MultiTarget/FSharpLint.FunctionalTest.TestedProject.MultiTarget.fsproj(0,0): error NU3028: Package 'Microsoft.AspNetCore.App.Ref 3.1.8' from source 'https://api.nuget.org/v3/index.json': The repository countersignature's timestamp found a chain building issue: ExplicitDistrust: The trust setting for this policy was set to Deny.
RestoreTask: /Users/runner/work/FSharpLint/FSharpLint/tests/FSharpLint.FunctionalTest.TestedProject/FSharpLint.FunctionalTest.TestedProject.MultiTarget/FSharpLint.FunctionalTest.TestedProject.MultiTarget.fsproj(0,0): error NU3037: Package 'Microsoft.AspNetCore.App.Ref 3.1.8' from source 'https://api.nuget.org/v3/index.json': The repository countersignature validity period has expired.
RestoreTask: /Users/runner/work/FSharpLint/FSharpLint/tests/FSharpLint.FunctionalTest.TestedProject/FSharpLint.FunctionalTest.TestedProject.NetCore/FSharpLint.FunctionalTest.TestedProject.NetCore.fsproj(0,0): error NU3028: Package 'Microsoft.AspNetCore.App.Ref 3.1.8' from source 'https://api.nuget.org/v3/index.json': The author primary signature's timestamp found a chain building issue: ExplicitDistrust: The trust setting for this policy was set to Deny.
RestoreTask: /Users/runner/work/FSharpLint/FSharpLint/tests/FSharpLint.FunctionalTest.TestedProject/FSharpLint.FunctionalTest.TestedProject.NetCore/FSharpLint.FunctionalTest.TestedProject.NetCore.fsproj(0,0): error NU3037: Package 'Microsoft.AspNetCore.App.Ref 3.1.8' from source 'https://api.nuget.org/v3/index.json': The author primary signature validity period has expired.
RestoreTask: /Users/runner/work/FSharpLint/FSharpLint/tests/FSharpLint.FunctionalTest.TestedProject/FSharpLint.FunctionalTest.TestedProject.NetCore/FSharpLint.FunctionalTest.TestedProject.NetCore.fsproj(0,0): error NU3028: Package 'Microsoft.AspNetCore.App.Ref 3.1.8' from source 'https://api.nuget.org/v3/index.json': The repository countersignature's timestamp found a chain building issue: ExplicitDistrust: The trust setting for this policy was set to Deny.
RestoreTask: /Users/runner/work/FSharpLint/FSharpLint/tests/FSharpLint.FunctionalTest.TestedProject/FSharpLint.FunctionalTest.TestedProject.NetCore/FSharpLint.FunctionalTest.TestedProject.NetCore.fsproj(0,0): error NU3037: Package 'Microsoft.AspNetCore.App.Ref 3.1.8' from source 'https://api.nuget.org/v3/index.json': The repository countersignature validity period has expired.
Finished (Failed) 'DotNet:restore' in 00:00:02.1316696
Finished (Failed) 'Test' in 00:01:40.7375376

---------------------------------------------------------------------
Build Time Report
---------------------------------------------------------------------
Target     Duration
------     --------
Clean      00:00:00.0059468
Build      00:00:31.4180335
Test       00:01:40.7373066   (Exception of type 'Fake.DotNet.MSBuildException' was thrown.)
Total:     00:02:12.2927884
Status:    Failure
---------------------------------------------------------------------
Script reported an error:
-> BuildFailedException: Target 'Test' failed.
-> One or more errors occurred. (Exception of type 'Fake.DotNet.MSBuildException' was thrown.)
-> MSBuildException: Exception of type 'Fake.DotNet.MSBuildException' was thrown.
Hint: To further diagnose the problem you can run fake in verbose mode `fake -v run ...` or set the 'FAKE_DETAILED_ERRORS' environment variable to 'true'
Hint: Could not find a version in your paket.dependencies file, consider adding 'version 5.257.0' at the top of your dependencies file (/Users/runner/work/FSharpLint/FSharpLint/paket.dependencies).
Read fsprojects/FAKE#2193 for details.

* Revert "CI: try dodge NU3037&NU3028 errors (occuring on macOS)"

This reverts commit 59401bd
because the intermittent problems of the macOS build still
happen after this commit which tried to solve them.

* CI: upgrade .NET from 5.0.100 to 5.0.202 to fix macOS build

There was an intermittent build issue on macOS, which seems related to:
NuGet/Home#10491 (comment)

The (intermittent) errors of the macOS build were:

* Step 'Restore tools':

warning NU3028: Package 'Fornax 0.13.1' from source 'https://api.nuget.org/v3/index.json': The repository primary signature's timestamp found a chain building issue: ExplicitDistrust: The trust setting for this policy was set to Deny.
error NU3037: Package 'Fornax 0.13.1' from source 'https://api.nuget.org/v3/index.json': The repository primary signature validity period has expired.
warning NU3028: Package 'fake-cli 5.20.4-alpha.1642' from source 'https://api.nuget.org/v3/index.json': The repository primary signature's timestamp found a chain building issue: ExplicitDistrust: The trust setting for this policy was set to Deny.
error NU3037: Package 'fake-cli 5.20.4-alpha.1642' from source 'https://api.nuget.org/v3/index.json': The repository primary signature validity period has expired.
warning NU3028: Package 'dotnet-fsharplint 0.16.1' from source 'https://api.nuget.org/v3/index.json': The repository primary signature's timestamp found a chain building issue: ExplicitDistrust: The trust setting for this policy was set to Deny.
error NU3037: Package 'dotnet-fsharplint 0.16.1' from source 'https://api.nuget.org/v3/index.json': The repository primary signature validity period has expired.
warning NU3028: Package 'Paket 5.252.0' from source 'https://api.nuget.org/v3/index.json': The repository primary signature's timestamp found a chain building issue: ExplicitDistrust: The trust setting for this policy was set to Deny.
error NU3037: Package 'Paket 5.252.0' from source 'https://api.nuget.org/v3/index.json': The repository primary signature validity period has expired.

Package "fake-cli" failed to restore, due to Microsoft.DotNet.ToolPackage.ToolPackageException: The tool package could not be restored.
   at Microsoft.DotNet.Tools.Tool.Install.ProjectRestorer.Restore(FilePath project, PackageLocation packageLocation, String verbosity)
   at Microsoft.DotNet.ToolPackage.ToolPackageInstaller.InstallPackageToExternalManagedLocation(PackageLocation packageLocation, PackageId packageId, VersionRange versionRange, String targetFramework, String verbosity)
   at Microsoft.DotNet.Tools.Tool.Restore.ToolRestoreCommand.InstallPackages(ToolManifestPackage package, Nullable`1 configFile)
Package "paket" failed to restore, due to Microsoft.DotNet.ToolPackage.ToolPackageException: The tool package could not be restored.
   at Microsoft.DotNet.Tools.Tool.Install.ProjectRestorer.Restore(FilePath project, PackageLocation packageLocation, String verbosity)
   at Microsoft.DotNet.ToolPackage.ToolPackageInstaller.InstallPackageToExternalManagedLocation(PackageLocation packageLocation, PackageId packageId, VersionRange versionRange, String targetFramework, String verbosity)
   at Microsoft.DotNet.Tools.Tool.Restore.ToolRestoreCommand.InstallPackages(ToolManifestPackage package, Nullable`1 configFile)
Package "dotnet-fsharplint" failed to restore, due to Microsoft.DotNet.ToolPackage.ToolPackageException: The tool package could not be restored.
   at Microsoft.DotNet.Tools.Tool.Install.ProjectRestorer.Restore(FilePath project, PackageLocation packageLocation, String verbosity)
   at Microsoft.DotNet.ToolPackage.ToolPackageInstaller.InstallPackageToExternalManagedLocation(PackageLocation packageLocation, PackageId packageId, VersionRange versionRange, String targetFramework, String verbosity)
   at Microsoft.DotNet.Tools.Tool.Restore.ToolRestoreCommand.InstallPackages(ToolManifestPackage package, Nullable`1 configFile)
Package "fornax" failed to restore, due to Microsoft.DotNet.ToolPackage.ToolPackageException: The tool package could not be restored.
   at Microsoft.DotNet.Tools.Tool.Install.ProjectRestorer.Restore(FilePath project, PackageLocation packageLocation, String verbosity)
   at Microsoft.DotNet.ToolPackage.ToolPackageInstaller.InstallPackageToExternalManagedLocation(PackageLocation packageLocation, PackageId packageId, VersionRange versionRange, String targetFramework, String verbosity)
   at Microsoft.DotNet.Tools.Tool.Restore.ToolRestoreCommand.InstallPackages(ToolManifestPackage package, Nullable`1 configFile)

Restore failed.
Error: Process completed with exit code 1.

* Step 'Run build':
/Users/runner/work/FSharpLint/FSharpLint/tests/FSharpLint.Console.Tests/bin/Release/net5.0/FSharpLint.Console.Tests.dll (net5.0)
Finished (Success) 'DotNet:test' in 00:00:11.1338241
Starting task 'DotNet:restore': tests/FSharpLint.FunctionalTest.TestedProject/FSharpLint.FunctionalTest.TestedProject.sln
/Users/runner/work/FSharpLint/FSharpLint> "/Users/runner/.dotnet/dotnet"  restore tests/FSharpLint.FunctionalTest.TestedProject/FSharpLint.FunctionalTest.TestedProject.sln /clp:ForceConsoleColor /bl:/var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/tmpoIYOVJ.tmp.binlog (In: false, Out: false, Err: false)
/Users/runner/.dotnet/sdk/5.0.100/MSBuild.dll -nologo -distributedlogger:Microsoft.DotNet.Tools.MSBuild.MSBuildLogger,/Users/runner/.dotnet/sdk/5.0.100/dotnet.dll*Microsoft.DotNet.Tools.MSBuild.MSBuildForwardingLogger,/Users/runner/.dotnet/sdk/5.0.100/dotnet.dll -maxcpucount -target:Restore -verbosity:m /bl:/var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/tmpoIYOVJ.tmp.binlog /clp:ForceConsoleColor tests/FSharpLint.FunctionalTest.TestedProject/FSharpLint.FunctionalTest.TestedProject.sln
  Determining projects to restore...
/Users/runner/work/FSharpLint/FSharpLint/tests/FSharpLint.FunctionalTest.TestedProject/FSharpLint.FunctionalTest.TestedProject.MultiTarget/FSharpLint.FunctionalTest.TestedProject.MultiTarget.fsproj : error NU3028: Package 'Microsoft.NETCore.Platforms 1.1.0' from source 'https://api.nuget.org/v3/index.json': The repository primary signature's timestamp found a chain building issue: ExplicitDistrust: The trust setting for this policy was set to Deny. [/Users/runner/work/FSharpLint/FSharpLint/tests/FSharpLint.FunctionalTest.TestedProject/FSharpLint.FunctionalTest.TestedProject.sln]
/Users/runner/work/FSharpLint/FSharpLint/tests/FSharpLint.FunctionalTest.TestedProject/FSharpLint.FunctionalTest.TestedProject.MultiTarget/FSharpLint.FunctionalTest.TestedProject.MultiTarget.fsproj : error NU3037: Package 'Microsoft.NETCore.Platforms 1.1.0' from source 'https://api.nuget.org/v3/index.json': The repository primary signature validity period has expired. [/Users/runner/work/FSharpLint/FSharpLint/tests/FSharpLint.FunctionalTest.TestedProject/FSharpLint.FunctionalTest.TestedProject.sln]
/Users/runner/work/FSharpLint/FSharpLint/tests/FSharpLint.FunctionalTest.TestedProject/FSharpLint.FunctionalTest.TestedProject.MultiTarget/FSharpLint.FunctionalTest.TestedProject.MultiTarget.fsproj : error NU3028: Package 'Microsoft.AspNetCore.App.Ref 3.1.8' from source 'https://api.nuget.org/v3/index.json': The author primary signature's timestamp found a chain building issue: ExplicitDistrust: The trust setting for this policy was set to Deny. [/Users/runner/work/FSharpLint/FSharpLint/tests/FSharpLint.FunctionalTest.TestedProject/FSharpLint.FunctionalTest.TestedProject.sln]
/Users/runner/work/FSharpLint/FSharpLint/tests/FSharpLint.FunctionalTest.TestedProject/FSharpLint.FunctionalTest.TestedProject.MultiTarget/FSharpLint.FunctionalTest.TestedProject.MultiTarget.fsproj : error NU3037: Package 'Microsoft.AspNetCore.App.Ref 3.1.8' from source 'https://api.nuget.org/v3/index.json': The author primary signature validity period has expired. [/Users/runner/work/FSharpLint/FSharpLint/tests/FSharpLint.FunctionalTest.TestedProject/FSharpLint.FunctionalTest.TestedProject.sln]
/Users/runner/work/FSharpLint/FSharpLint/tests/FSharpLint.FunctionalTest.TestedProject/FSharpLint.FunctionalTest.TestedProject.MultiTarget/FSharpLint.FunctionalTest.TestedProject.MultiTarget.fsproj : error NU3028: Package 'Microsoft.AspNetCore.App.Ref 3.1.8' from source 'https://api.nuget.org/v3/index.json': The repository countersignature's timestamp found a chain building issue: ExplicitDistrust: The trust setting for this policy was set to Deny. [/Users/runner/work/FSharpLint/FSharpLint/tests/FSharpLint.FunctionalTest.TestedProject/FSharpLint.FunctionalTest.TestedProject.sln]
/Users/runner/work/FSharpLint/FSharpLint/tests/FSharpLint.FunctionalTest.TestedProject/FSharpLint.FunctionalTest.TestedProject.MultiTarget/FSharpLint.FunctionalTest.TestedProject.MultiTarget.fsproj : error NU3037: Package 'Microsoft.AspNetCore.App.Ref 3.1.8' from source 'https://api.nuget.org/v3/index.json': The repository countersignature validity period has expired. [/Users/runner/work/FSharpLint/FSharpLint/tests/FSharpLint.FunctionalTest.TestedProject/FSharpLint.FunctionalTest.TestedProject.sln]
/Users/runner/work/FSharpLint/FSharpLint/tests/FSharpLint.FunctionalTest.TestedProject/FSharpLint.FunctionalTest.TestedProject.NetCore/FSharpLint.FunctionalTest.TestedProject.NetCore.fsproj : error NU3028: Package 'Microsoft.AspNetCore.App.Ref 3.1.8' from source 'https://api.nuget.org/v3/index.json': The author primary signature's timestamp found a chain building issue: ExplicitDistrust: The trust setting for this policy was set to Deny. [/Users/runner/work/FSharpLint/FSharpLint/tests/FSharpLint.FunctionalTest.TestedProject/FSharpLint.FunctionalTest.TestedProject.sln]
/Users/runner/work/FSharpLint/FSharpLint/tests/FSharpLint.FunctionalTest.TestedProject/FSharpLint.FunctionalTest.TestedProject.NetCore/FSharpLint.FunctionalTest.TestedProject.NetCore.fsproj : error NU3037: Package 'Microsoft.AspNetCore.App.Ref 3.1.8' from source 'https://api.nuget.org/v3/index.json': The author primary signature validity period has expired. [/Users/runner/work/FSharpLint/FSharpLint/tests/FSharpLint.FunctionalTest.TestedProject/FSharpLint.FunctionalTest.TestedProject.sln]
/Users/runner/work/FSharpLint/FSharpLint/tests/FSharpLint.FunctionalTest.TestedProject/FSharpLint.FunctionalTest.TestedProject.NetCore/FSharpLint.FunctionalTest.TestedProject.NetCore.fsproj : error NU3028: Package 'Microsoft.AspNetCore.App.Ref 3.1.8' from source 'https://api.nuget.org/v3/index.json': The repository countersignature's timestamp found a chain building issue: ExplicitDistrust: The trust setting for this policy was set to Deny. [/Users/runner/work/FSharpLint/FSharpLint/tests/FSharpLint.FunctionalTest.TestedProject/FSharpLint.FunctionalTest.TestedProject.sln]
/Users/runner/work/FSharpLint/FSharpLint/tests/FSharpLint.FunctionalTest.TestedProject/FSharpLint.FunctionalTest.TestedProject.NetCore/FSharpLint.FunctionalTest.TestedProject.NetCore.fsproj : error NU3037: Package 'Microsoft.AspNetCore.App.Ref 3.1.8' from source 'https://api.nuget.org/v3/index.json': The repository countersignature validity period has expired. [/Users/runner/work/FSharpLint/FSharpLint/tests/FSharpLint.FunctionalTest.TestedProject/FSharpLint.FunctionalTest.TestedProject.sln]
  Failed to restore /Users/runner/work/FSharpLint/FSharpLint/tests/FSharpLint.FunctionalTest.TestedProject/FSharpLint.FunctionalTest.TestedProject.MultiTarget/FSharpLint.FunctionalTest.TestedProject.MultiTarget.fsproj (in 663 ms).
  Failed to restore /Users/runner/work/FSharpLint/FSharpLint/tests/FSharpLint.FunctionalTest.TestedProject/FSharpLint.FunctionalTest.TestedProject.NetCore/FSharpLint.FunctionalTest.TestedProject.NetCore.fsproj (in 663 ms).
RestoreTask: /Users/runner/work/FSharpLint/FSharpLint/tests/FSharpLint.FunctionalTest.TestedProject/FSharpLint.FunctionalTest.TestedProject.MultiTarget/FSharpLint.FunctionalTest.TestedProject.MultiTarget.fsproj(0,0): error NU3028: Package 'Microsoft.NETCore.Platforms 1.1.0' from source 'https://api.nuget.org/v3/index.json': The repository primary signature's timestamp found a chain building issue: ExplicitDistrust: The trust setting for this policy was set to Deny.
RestoreTask: /Users/runner/work/FSharpLint/FSharpLint/tests/FSharpLint.FunctionalTest.TestedProject/FSharpLint.FunctionalTest.TestedProject.MultiTarget/FSharpLint.FunctionalTest.TestedProject.MultiTarget.fsproj(0,0): error NU3037: Package 'Microsoft.NETCore.Platforms 1.1.0' from source 'https://api.nuget.org/v3/index.json': The repository primary signature validity period has expired.
RestoreTask: /Users/runner/work/FSharpLint/FSharpLint/tests/FSharpLint.FunctionalTest.TestedProject/FSharpLint.FunctionalTest.TestedProject.MultiTarget/FSharpLint.FunctionalTest.TestedProject.MultiTarget.fsproj(0,0): error NU3028: Package 'Microsoft.AspNetCore.App.Ref 3.1.8' from source 'https://api.nuget.org/v3/index.json': The author primary signature's timestamp found a chain building issue: ExplicitDistrust: The trust setting for this policy was set to Deny.
RestoreTask: /Users/runner/work/FSharpLint/FSharpLint/tests/FSharpLint.FunctionalTest.TestedProject/FSharpLint.FunctionalTest.TestedProject.MultiTarget/FSharpLint.FunctionalTest.TestedProject.MultiTarget.fsproj(0,0): error NU3037: Package 'Microsoft.AspNetCore.App.Ref 3.1.8' from source 'https://api.nuget.org/v3/index.json': The author primary signature validity period has expired.
RestoreTask: /Users/runner/work/FSharpLint/FSharpLint/tests/FSharpLint.FunctionalTest.TestedProject/FSharpLint.FunctionalTest.TestedProject.MultiTarget/FSharpLint.FunctionalTest.TestedProject.MultiTarget.fsproj(0,0): error NU3028: Package 'Microsoft.AspNetCore.App.Ref 3.1.8' from source 'https://api.nuget.org/v3/index.json': The repository countersignature's timestamp found a chain building issue: ExplicitDistrust: The trust setting for this policy was set to Deny.
RestoreTask: /Users/runner/work/FSharpLint/FSharpLint/tests/FSharpLint.FunctionalTest.TestedProject/FSharpLint.FunctionalTest.TestedProject.MultiTarget/FSharpLint.FunctionalTest.TestedProject.MultiTarget.fsproj(0,0): error NU3037: Package 'Microsoft.AspNetCore.App.Ref 3.1.8' from source 'https://api.nuget.org/v3/index.json': The repository countersignature validity period has expired.
RestoreTask: /Users/runner/work/FSharpLint/FSharpLint/tests/FSharpLint.FunctionalTest.TestedProject/FSharpLint.FunctionalTest.TestedProject.NetCore/FSharpLint.FunctionalTest.TestedProject.NetCore.fsproj(0,0): error NU3028: Package 'Microsoft.AspNetCore.App.Ref 3.1.8' from source 'https://api.nuget.org/v3/index.json': The author primary signature's timestamp found a chain building issue: ExplicitDistrust: The trust setting for this policy was set to Deny.
RestoreTask: /Users/runner/work/FSharpLint/FSharpLint/tests/FSharpLint.FunctionalTest.TestedProject/FSharpLint.FunctionalTest.TestedProject.NetCore/FSharpLint.FunctionalTest.TestedProject.NetCore.fsproj(0,0): error NU3037: Package 'Microsoft.AspNetCore.App.Ref 3.1.8' from source 'https://api.nuget.org/v3/index.json': The author primary signature validity period has expired.
RestoreTask: /Users/runner/work/FSharpLint/FSharpLint/tests/FSharpLint.FunctionalTest.TestedProject/FSharpLint.FunctionalTest.TestedProject.NetCore/FSharpLint.FunctionalTest.TestedProject.NetCore.fsproj(0,0): error NU3028: Package 'Microsoft.AspNetCore.App.Ref 3.1.8' from source 'https://api.nuget.org/v3/index.json': The repository countersignature's timestamp found a chain building issue: ExplicitDistrust: The trust setting for this policy was set to Deny.
RestoreTask: /Users/runner/work/FSharpLint/FSharpLint/tests/FSharpLint.FunctionalTest.TestedProject/FSharpLint.FunctionalTest.TestedProject.NetCore/FSharpLint.FunctionalTest.TestedProject.NetCore.fsproj(0,0): error NU3037: Package 'Microsoft.AspNetCore.App.Ref 3.1.8' from source 'https://api.nuget.org/v3/index.json': The repository countersignature validity period has expired.
Finished (Failed) 'DotNet:restore' in 00:00:02.1316696
Finished (Failed) 'Test' in 00:01:40.7375376

---------------------------------------------------------------------
Build Time Report
---------------------------------------------------------------------
Target     Duration
------     --------
Clean      00:00:00.0059468
Build      00:00:31.4180335
Test       00:01:40.7373066   (Exception of type 'Fake.DotNet.MSBuildException' was thrown.)
Total:     00:02:12.2927884
Status:    Failure
---------------------------------------------------------------------
Script reported an error:
-> BuildFailedException: Target 'Test' failed.
-> One or more errors occurred. (Exception of type 'Fake.DotNet.MSBuildException' was thrown.)
-> MSBuildException: Exception of type 'Fake.DotNet.MSBuildException' was thrown.
Hint: To further diagnose the problem you can run fake in verbose mode `fake -v run ...` or set the 'FAKE_DETAILED_ERRORS' environment variable to 'true'
Hint: Could not find a version in your paket.dependencies file, consider adding 'version 5.257.0' at the top of your dependencies file (/Users/runner/work/FSharpLint/FSharpLint/paket.dependencies).
Read fsprojects/FAKE#2193 for details.
@dhilst
Copy link

dhilst commented Oct 4, 2021

I was having this on MacOS at October, 2021. I was using donet version 5.0.103, updating to 5.0.204 fixed for me

@Harold-Morgan
Copy link

I was having this on MacOS at October, 2021. I was using donet version 5.0.103, updating to 5.0.204 fixed for me

Was having this too on 5.0.201 and 5.0.401 update fixed the problems. Seems to be "pre 5.0.204" problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.