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

Compiling 1_ClientServer gives me error NU3037 on macOS #519

Closed
varosi opened this issue Nov 9, 2022 · 5 comments
Closed

Compiling 1_ClientServer gives me error NU3037 on macOS #519

varosi opened this issue Nov 9, 2022 · 5 comments

Comments

@varosi
Copy link

varosi commented Nov 9, 2022

OS: macOS 13.0 x64

pc -proj:ClientServer.pproj
...

Compiling ClientServer...
Error:
Compiling generated C# code FAILED!
Microsoft (R) Build Engine version 16.8.3+39993bd9d for .NET
Copyright (C) Microsoft Corporation. All rights reserved.

  Determining projects to restore...
/Users/vasko/Projects/p/P/Tutorial/1_ClientServer/ClientServer.csproj : warning NU3028: Package 'PCSharpRuntime 1.1.15' 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/vasko/Projects/p/P/Tutorial/1_ClientServer/ClientServer.csproj : warning NU3028: Package 'Microsoft.Coyote 1.0.5' 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/vasko/Projects/p/P/Tutorial/1_ClientServer/ClientServer.csproj : error NU3037: Package 'Microsoft.Coyote 1.0.5' from source 'https://api.nuget.org/v3/index.json': The author primary signature validity period has expired.
/Users/vasko/Projects/p/P/Tutorial/1_ClientServer/ClientServer.csproj : warning NU3028: Package 'Microsoft.Coyote 1.0.5' 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/vasko/Projects/p/P/Tutorial/1_ClientServer/ClientServer.csproj : error NU3037: Package 'Microsoft.Coyote 1.0.5' from source 'https://api.nuget.org/v3/index.json': The repository countersignature validity period has expired.
  Failed to restore /Users/vasko/Projects/p/P/Tutorial/1_ClientServer/ClientServer.csproj (in 3.77 sec).

Build FAILED.

/Users/vasko/Projects/p/P/Tutorial/1_ClientServer/ClientServer.csproj : warning NU3028: Package 'PCSharpRuntime 1.1.15' 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/vasko/Projects/p/P/Tutorial/1_ClientServer/ClientServer.csproj : warning NU3028: Package 'Microsoft.Coyote 1.0.5' 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/vasko/Projects/p/P/Tutorial/1_ClientServer/ClientServer.csproj : warning NU3028: Package 'Microsoft.Coyote 1.0.5' 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/vasko/Projects/p/P/Tutorial/1_ClientServer/ClientServer.csproj : error NU3037: Package 'Microsoft.Coyote 1.0.5' from source 'https://api.nuget.org/v3/index.json': The author primary signature validity period has expired.
/Users/vasko/Projects/p/P/Tutorial/1_ClientServer/ClientServer.csproj : error NU3037: Package 'Microsoft.Coyote 1.0.5' from source 'https://api.nuget.org/v3/index.json': The repository countersignature validity period has expired.
    3 Warning(s)
    2 Error(s)

Time Elapsed 00:00:06.69
@ankushdesai
Copy link
Member

Any updates on this?

@varosi
Copy link
Author

varosi commented Nov 15, 2022

If you need something to be tested by me, just write me what.

@ankushdesai
Copy link
Member

I am not sure what I can ask you to test, P seems to work fine on MacOS that we have been using.
Can you make sure you have the right version of DotNet installed and dont have any other version defined as default.

@varosi
Copy link
Author

varosi commented Nov 15, 2022

I was following those steps: https://p-org.github.io/P/getstarted/install/

dotnet --list-sdks
3.1.424 [/usr/local/share/dotnet/sdk]
5.0.103 [/usr/local/share/dotnet/sdk]

3.1 was installed after 5.0.

I have also tried on another mac, where there is no 5.0 installed before that and all those steps went well. Except, that "where" command is not returning anything on both Macs.

@varosi
Copy link
Author

varosi commented Nov 15, 2022

I found a solution:

  1. Update existing 5.0 dotnet with: brew install dotnet
  2. Trust new certificates with: dotnet dev-certs https --trust
  3. dotnet tool update --global P

@varosi varosi closed this as completed Nov 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants