3 months ago
    I am getting the below error after adding a simple integration test from the docs:
    func TestVpc(t *testing.T) {
    	awsRegion := "us-east-1"
    	cwd, _ := os.Getwd()
    	integration.ProgramTest(t, &integration.ProgramTestOptions{
    		Quick:       true,
    		SkipRefresh: true,
    		Dir:         path.Join(cwd, "..", "..", "aep-base-infra"),
    		Config: map[string]string{
    			"aws:region": awsRegion,
    ➜ resources (main) ✗ go test ./...
    panic: proto: duplicate enum registered: pulumirpc.EnforcementLevel
    goroutine 1 [running]:
    <{0x101cb7b88|{0x101cb7b88>, 0x1a}, 0x14000359a10?, 0x140003599e0?)
    	/Users/dinesh.auti/go/pkg/mod/ +0xb8
    	/Users/dinesh.auti/go/pkg/mod/ +0x44
    exit status 2
    FAIL	<|>	0.393s
    Has anyone seen this before? I am using Pulumi version 3.35.1
    Upgrading the version to v3 solved the issue.
    go get <|>


    2 months ago
    Tip: always make sure that the Pulumi packages come from the same version, otherwise you have the chance that the code tries to register the protobufs spec more than once. I bumped into a similar issue myself earlier this week and learned a thing or two about the protobuf lib in go: