pulumiverse / pulumi-talos

Pulumi provider for Talos
Mozilla Public License 2.0
38 stars 11 forks source link

Error using talosSecrets #98

Open drduker opened 1 month ago

drduker commented 1 month ago
Diagnostics:
  pulumi:pulumi:Stack (talos-aws-pulumi-talos-us-east-1):
    # github.com/pulumiverse/pulumi-talos/sdk/go/talos/machine
    ../../../../go/pkg/mod/github.com/pulumiverse/pulumi-talos/sdk@v0.2.0/go/talos/machine/secrets.go:49:6: SecretsType redeclared in this block
        ../../../../go/pkg/mod/github.com/pulumiverse/pulumi-talos/sdk@v0.2.0/go/talos/machine/pulumiTypes.go:3190:6: other declaration of SecretsType
    ../../../../go/pkg/mod/github.com/pulumiverse/pulumi-talos/sdk@v0.2.0/go/talos/machine/secrets.go:69:75: cannot use &resource (value of type *SecretsType) as pulumi.Resource value in argument to ctx.RegisterResource: *SecretsType does not implement pulumi.Resource (missing method URN)
    ../../../../go/pkg/mod/github.com/pulumiverse/pulumi-talos/sdk@v0.2.0/go/talos/machine/secrets.go:117:6: SecretsTypeArgs redeclared in this block
        ../../../../go/pkg/mod/github.com/pulumiverse/pulumi-talos/sdk@v0.2.0/go/talos/machine/pulumiTypes.go:3209:6: other declaration of SecretsTypeArgs
    ../../../../go/pkg/mod/github.com/pulumiverse/pulumi-talos/sdk@v0.2.0/go/talos/machine/secrets.go:122:24: method SecretsTypeArgs.ElementType already declared at ../../../../go/pkg/mod/github.com/pulumiverse/pulumi-talos/sdk@v0.2.0/go/talos/machine/pulumiTypes.go:3216:24
    ../../../../go/pkg/mod/github.com/pulumiverse/pulumi-talos/sdk@v0.2.0/go/talos/machine/secrets.go:126:6: SecretsTypeInput redeclared in this block
        ../../../../go/pkg/mod/github.com/pulumiverse/pulumi-talos/sdk@v0.2.0/go/talos/machine/pulumiTypes.go:3201:6: other declaration of SecretsTypeInput
    ../../../../go/pkg/mod/github.com/pulumiverse/pulumi-talos/sdk@v0.2.0/go/talos/machine/secrets.go:195:6: SecretsTypeOutput redeclared in this block
        ../../../../go/pkg/mod/github.com/pulumiverse/pulumi-talos/sdk@v0.2.0/go/talos/machine/pulumiTypes.go:3270:6: other declaration of SecretsTypeOutput
    ../../../../go/pkg/mod/github.com/pulumiverse/pulumi-talos/sdk@v0.2.0/go/talos/machine/secrets.go:197:26: method SecretsTypeOutput.ElementType already declared at ../../../../go/pkg/mod/github.com/pulumiverse/pulumi-talos/sdk@v0.2.0/go/talos/machine/pulumiTypes.go:3272:26
    ../../../../go/pkg/mod/github.com/pulumiverse/pulumi-talos/sdk@v0.2.0/go/talos/machine/secrets.go:201:28: method SecretsTypeOutput.ToSecretsTypeOutput already declared at ../../../../go/pkg/mod/github.com/pulumiverse/pulumi-talos/sdk@v0.2.0/go/talos/machine/pulumiTypes.go:3276:28
    ../../../../go/pkg/mod/github.com/pulumiverse/pulumi-talos/sdk@v0.2.0/go/talos/machine/secrets.go:205:28: method SecretsTypeOutput.ToSecretsTypeOutputWithContext already declared at ../../../../go/pkg/mod/github.com/pulumiverse/pulumi-talos/sdk@v0.2.0/go/talos/machine/pulumiTypes.go:3280:28
    ../../../../go/pkg/mod/github.com/pulumiverse/pulumi-talos/sdk@v0.2.0/go/talos/machine/init.go:29:7: cannot use &SecretsType{} (value of type *SecretsType) as pulumi.Resource value in assignment: *SecretsType does not implement pulumi.Resource (missing method URN)
    ../../../../go/pkg/mod/github.com/pulumiverse/pulumi-talos/sdk@v0.2.0/go/talos/machine/secrets.go:69:75: too many errors

    error: error in compiling Go: unable to run `go build`: exit status 1
something is broken with v0.2.0.  And chance we will see an update that fixes the talos secrets?
ringods commented 1 month ago

@drduker this is related to #93

I have tried in several ways to fix this, but it is lacking some support on Pulumi side, as mentioned in the linked Github issue for core Pulumi.

drduker commented 1 month ago

@ringods github.com/pulumiverse/pulumi-talos/sdk v0.2.1-0.20240418152927-2960f4249b3b

somehow this version works. FYI.