This message was deleted.
s
This message was deleted.
b
Are you using dotnetcore3,1? The runners might not have it anymore and you may need to explicitly install it.
l
To my knowledge, I'm not explicitly using it. I don't have it installed locally, and the pulumi commands work locally.
b
Local you can see by dotnet —list-runtimes
What version is referenced in the csproj?
it looks like 3.1
/home/runner/work/GeneralRV-API/GeneralRV-API/Devops/azure-environment/pulumi/grv-api-resources/bin/Debug/netcoreapp3.1/grv-api-resource
probably need to update that version or add
Copy code
- uses: actions/setup-dotnet@v3
  with:
    dotnet-version: '3.1.x'
👁️ 1
The runners should still have 3.1.4 though
l
I'm using:
Copy code
runs-on: ubuntu-latest
I'll add a "uses" of the setup-dotnet action. Weird that it's worked w/o warning or error for quite a while.
Really appreciate the feedback and responses.
b
it looks like ubuntu runners only have .net 6
strange
l
I guess my question is why that wouldn't work. Is there something about pulumi that demands .net core 3.1.x?
And if so, why don't I see the problem locally?
c
You probably have 3.1 runtime installed locally. What was the output of running the command @bored-activity-40468 mentioned (https://pulumi-community.slack.com/archives/CQ2QFLNFL/p1670337692964999?thread_ts=1670336678.267089&cid=CQ2QFLNFL)? Also see https://www.pulumi.com/blog/pulumi-targets-dotnet-6/#backward-compatibility, the .net 6 support announcement blog post from Pulumi. It seems that the cloud provider packages and the core Pulumi SDK are still targeting the 3.1 runtime for backwards compatibility.
👁️ 1
l
I do have 3.1 installed locally - I had been looking at installed sdks.
i
i use
Copy code
- uses: actions/setup-dotnet@v1
        with:
          dotnet-version: 6.x
in GH actions with no issue
l
Yeah - I already had that for building my app, just not for the Pulumi job. And no errors until today.
i
it’s still erroring after adding that step?
l
It's fixed. Thanks all!!
👍 2