https://pulumi.com logo
#golang
Title
# golang
h

hallowed-author-21638

03/09/2021, 12:58 PM
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

gentle-diamond-70147

03/09/2021, 6:29 PM
Yes, the project name is set in the
Pulumi.yaml
file.
h

hallowed-author-21638

03/09/2021, 6:38 PM
That's odd I have it defined..
g

gentle-diamond-70147

03/09/2021, 7:19 PM
What provider are you using? It's possible this is coming from your provider - e.g. Google?
h

hallowed-author-21638

03/09/2021, 7:58 PM
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

sparse-park-68967

03/10/2021, 2:07 AM
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
3 Views