I'm running into a strange error. We added a new r...
# package-authoring
b
I'm running into a strange error. We added a new resource to our Terraform provider which I added to Pulumi in /provider/resources.go
Copy code
Resources: map[string]*tfbridge.ResourceInfo{
			"twingate_connector":             {Tok: tfbridge.MakeResource(mainPkg, mainMod, "TwingateConnector")},
			"twingate_connector_tokens":      {Tok: tfbridge.MakeResource(mainPkg, mainMod, "TwingateConnectorTokens")},
			"twingate_dns_filtering_profile": {Tok: tfbridge.MakeResource(mainPkg, mainMod, "TwingateDNSFilteringProfile")},
			"twingate_group":                 {Tok: tfbridge.MakeResource(mainPkg, mainMod, "TwingateGroup")},
			"twingate_remote_network":        {Tok: tfbridge.MakeResource(mainPkg, mainMod, "TwingateRemoteNetwork")},
			"twingate_resource":              {Tok: tfbridge.MakeResource(mainPkg, mainMod, "TwingateResource")},
			"twingate_service_account":       {Tok: tfbridge.MakeResource(mainPkg, mainMod, "TwingateServiceAccount")},
			"twingate_service_account_key":   {Tok: tfbridge.MakeResource(mainPkg, mainMod, "TwingateServiceAccountKey")},
			"twingate_user":                  {Tok: tfbridge.MakeResource(mainPkg, mainMod, "TwingateUser")},
		},
The new resource is
TwingateDNSFilteringProfile
. When testing with DotNet, Python, and TypeScript the new resource works. But when testing with Go I get the error
Copy code
twingate:index:TwingateDNSFilteringProfile (dns_profile):
    error: [pf/tfbridge] unknown resource token: twingate:index/twingateDNSFilteringProfile:TwingateDNSFilteringProfile
I looked at the Go SDK files and it does have references for
twingate:index/twingateDNSFilteringProfile:TwingateDNSFilteringProfile
a
Could this be go using the old version? Do you have any go.work files which might interfere here?
b
I got it working by pointing to my local go SDK
🎉 1