https://pulumi.com logo
#dotnet
Title
# dotnet
c

chilly-analyst-14900

08/22/2022, 12:23 PM
stderr: error: failed to discover plugin requirements: unexpected output from 'dotnet list package --include-transitive'. Program does not appear to reference any 'Pulumi.*' packages
Any idea what this really means (GitHub action output)? Bare bones Pulumi csproj.
Build output looks fine. It’s just the github action failing me.
Copy code
pulumi:pulumi:Stack myproj-test  'dotnet build -nologo .' completed successfully
@elegant-window-55250 ..?
Does
pulumi/actions@v3
depend on an older .NET SDK?
no idea how to debug this
e

elegant-window-55250

08/22/2022, 1:18 PM
👋
👋 1
Can you share an example?
c

chilly-analyst-14900

08/22/2022, 1:22 PM
It just started working without any change. Not sure what gives. But anyhoo, it’s a basic dotnet project (.NET 6). The pulumi CLI works fine locally and it works in the action (it shows up in the Pulumi logs in the portal as well).
But the GH action thinks the .NET proj does not have correct deps, even after successfully building and running a preview.
b

bored-oyster-3147

08/22/2022, 8:55 PM
Possibly an issue with the working directory of the GH action? When the pulumi CLI executes on a .NET Pulumi Project it is builds it, and then it uses
dotnet list package
to find the referenced NuGet packages of the project it just built in order to determine what pulumi plugins it needs to install via
pulumi plugin install
in order for you pulumi up invocation to execute. So it is this element of plugin discovery that is failing for some reason. Short of this functioning you would need to install the pulumi plugins yourself before running pulumi up
But if pulumi is building and then doing a preview and then giving this error, it sounds like a bug
c

chilly-analyst-14900

08/23/2022, 10:52 AM
pulumi is building and then doing a preview and then giving this error, it sounds like a bug
Yup. Intermittent as well :S
2 Views