diff --git a/provider/cmd/pulumi-gen-awsx/main.go b/provider/cmd/pulumi-gen-awsx/main.go index d65cae4fa..8b64cc00a 100644 --- a/provider/cmd/pulumi-gen-awsx/main.go +++ b/provider/cmd/pulumi-gen-awsx/main.go @@ -23,14 +23,16 @@ import ( "strings" "github.com/pkg/errors" - gen "github.com/pulumi/pulumi-awsx/provider/v2/pkg/schemagen" - "github.com/pulumi/pulumi-awsx/provider/v2/pkg/version" + "github.com/spf13/cobra" + dotnetgen "github.com/pulumi/pulumi/pkg/v3/codegen/dotnet" gogen "github.com/pulumi/pulumi/pkg/v3/codegen/go" nodegen "github.com/pulumi/pulumi/pkg/v3/codegen/nodejs" pygen "github.com/pulumi/pulumi/pkg/v3/codegen/python" "github.com/pulumi/pulumi/pkg/v3/codegen/schema" - "github.com/spf13/cobra" + + gen "github.com/pulumi/pulumi-awsx/provider/v2/pkg/schemagen" + "github.com/pulumi/pulumi-awsx/provider/v2/pkg/version" ) const ( diff --git a/provider/pkg/schemagen/ec2.go b/provider/pkg/schemagen/ec2.go index 35aa85260..d19bbee77 100644 --- a/provider/pkg/schemagen/ec2.go +++ b/provider/pkg/schemagen/ec2.go @@ -15,10 +15,11 @@ package gen import ( - _ "embed" "fmt" "strings" + _ "embed" + "github.com/pulumi/pulumi/pkg/v3/codegen/schema" ) diff --git a/provider/provider_test.go b/provider/provider_test.go index 0cdbb49a4..c9bbef3da 100644 --- a/provider/provider_test.go +++ b/provider/provider_test.go @@ -19,12 +19,13 @@ import ( "path/filepath" "testing" + "github.com/stretchr/testify/require" + "github.com/pulumi/providertest" "github.com/pulumi/providertest/optproviderupgrade" "github.com/pulumi/providertest/pulumitest" "github.com/pulumi/providertest/pulumitest/assertpreview" "github.com/pulumi/providertest/pulumitest/opttest" - "github.com/stretchr/testify/require" ) func TestReportUpgradeCoverage(t *testing.T) {