https://pulumi.com logo
Title
e

enough-truck-34175

06/30/2021, 3:54 PM
Are pulumi integration tests compatible with v3? The doc examples are using
<http://github.com/pulumi/pulumi/pkg/v2/testing/integration|github.com/pulumi/pulumi/pkg/v2/testing/integration>
. When I add that package, go mod also adds these two indirect dependencies
<http://opkg.in/airbrake/gobrake.v2|opkg.in/airbrake/gobrake.v2> v2.0.9 // indirect
<http://gopkg.in/gemnasium/logrus-airbrake-hook.v2|gopkg.in/gemnasium/logrus-airbrake-hook.v2> v2.1.2 // indirect
Then, when I run
go test .
, I get the following error message
go test .                                                                                                                                                                                             [.]
panic: proto: duplicate enum registered: pulumirpc.EnforcementLevel

goroutine 1 [running]:
<http://github.com/golang/protobuf/proto.RegisterEnum(0x187e661|github.com/golang/protobuf/proto.RegisterEnum(0x187e661>, 0x1a, 0xc0005fbe60, 0xc0005fbe90)
        /home/vscode/go/pkg/mod/github.com/golang/protobuf@v1.4.3/proto/registry.go:104 +0x11f
<http://github.com/pulumi/pulumi/sdk/v3/proto/go.init.0()|github.com/pulumi/pulumi/sdk/v3/proto/go.init.0()>
        /home/vscode/go/pkg/mod/github.com/pulumi/pulumi/sdk/v3@v3.5.1/proto/go/analyzer.pb.go:963 +0x52
FAIL    <http://github.com/relativityone/r1-compute-infra/pkg/test|github.com/relativityone/r1-compute-infra/pkg/test>      0.027s
FAIL
Full list of package dependencies
<http://github.com/Azure/go-autorest/autorest|github.com/Azure/go-autorest/autorest> v0.11.19
<http://github.com/Azure/go-autorest/autorest/azure/auth|github.com/Azure/go-autorest/autorest/azure/auth> v0.5.7
<http://github.com/pkg/errors|github.com/pkg/errors> v0.9.1
<http://github.com/pulumi/pulumi-azure-native/sdk|github.com/pulumi/pulumi-azure-native/sdk> v1.14.0
<http://github.com/pulumi/pulumi-kubernetes/sdk/v3|github.com/pulumi/pulumi-kubernetes/sdk/v3> v3.4.0
<http://github.com/pulumi/pulumi/pkg/v2|github.com/pulumi/pulumi/pkg/v2> v2.25.2
<http://github.com/pulumi/pulumi/sdk/v3|github.com/pulumi/pulumi/sdk/v3> v3.5.1
<http://github.com/stretchr/testify|github.com/stretchr/testify> v1.7.0
<http://gopkg.in/airbrake/gobrake.v2|gopkg.in/airbrake/gobrake.v2> v2.0.9 // indirect
<http://gopkg.in/gemnasium/logrus-airbrake-hook.v2|gopkg.in/gemnasium/logrus-airbrake-hook.v2> v2.1.2 // indirect
b

broad-dog-22463

06/30/2021, 4:02 PM
hey @enough-truck-34175 can you open an issue on pulumi-hugo repo and I can get them updated? Just change /v2 and v3 and it will pull the new version for you
(please include a link to where those are from)
e

enough-truck-34175

06/30/2021, 4:04 PM
Will do. Thank you 👍
b

broad-dog-22463

06/30/2021, 4:19 PM
thanks and sorry about this issue!