Hey all I'm trying to compile and run a static Go ...
# golang
h
Hey all I'm trying to compile and run a static Go binary though it's exiting with error
error: program failed: missing project name
the project name is defined in Pulumi.yaml correct? I'm mostly trying to step through my code atm to understand my output values a bit better
g
Yes, the project name is set in the
Pulumi.yaml
file.
h
That's odd I have it defined..
g
What provider are you using? It's possible this is coming from your provider - e.g. Google?
h
DigitalOcean
Copy code
---
name: nyc1-cluster
runtime:
  name: go
description: NYC1 DigitalOcean Cluster
Contents of my Pulumi.yaml I have tried the binary option as well
s
Are you trying to debug the binary directly? Running it standalone is going to be challenging since there are a few concurrent processes at work (cli, language wrapper etc.). Your best bet would be to convert your program to an inline automation api example. It should be fairly straightforward to follow from this example but there is some boilerplate: https://github.com/pulumi/automation-api-examples/blob/main/go/inline_program/main.go#L28. Just insert your
pulumi.Run()
in there. You should be able to run that under a debugger just fine.
🙏 1