This message was deleted.
s
This message was deleted.
m
Hi Yann, Can you run
pulumi about
and maybe share your project (or parts of it, as possible)?
b
Sure, here is a sample project https://github.com/yann-soubeyrand/pulumi-cgo and `pulumi about`:
Copy code
CLI          
Version      3.48.0
Go Version   go1.19.2
Go Compiler  gc

Plugins
NAME  VERSION
go    unknown

Host     
OS       fedora
Version  37
Arch     x86_64

This project is written in go: executable='/usr/bin/go' version='go version go1.19.1 linux/amd64'

Current Stack: test

TYPE                 URN
pulumi:pulumi:Stack  urn:pulumi:test::cgo::pulumi:pulumi:Stack::cgo-test


Found no pending operations associated with test

Backend        
Name           toolbox
URL            file://.
User           yann
Organizations  

Pulumi locates its logs in /tmp by default
warning: Failed to get information about the Pulumi program's dependencies: failed to get modules: exit status 1
The root cause seems to be the vendoring: github.com/pjbgf/sha1cd/cgo includes C files in github.com/pjbgf/sha1cd/cgo/lib and vendoring of a package doesn’t include subfolders. However, using
export CGO_ENABLED=0
before running
pulumi up
makes it work.
The problem with github.com/pjbgf/sha1cd has been fixed. However, my question remains: is there a reason why Pulumi doesn't use
CGO_ENABLED=0
?
m
Hi Yann, best thing would be to open an issue in the Pulumi repo! The engineers can than engage with your suggestion better
b
Thanks for the suggestion @many-telephone-49025. I’ve open this discussion: https://github.com/pulumi/pulumi/discussions/11526