Skip to content

Commit

Permalink
Fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
iwahbe committed Dec 26, 2023
1 parent a6fdba7 commit 9f1974e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 10 deletions.
7 changes: 2 additions & 5 deletions .golangci.yml
Original file line number Diff line number Diff line change
@@ -1,21 +1,18 @@
linters:
enable:
- deadcode
- errcheck
- goconst
- gofmt
- golint
- gosec
- govet
- ineffassign
- interfacer
- lll
- megacheck
- misspell
- nakedret
- structcheck
- revive
- unconvert
- varcheck
- unused
enable-all: false
run:
skip-files:
Expand Down
11 changes: 6 additions & 5 deletions provider/resources.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ const (
// It should validate that the provider can be configured, and provide actionable errors in the case
// it cannot be. Configuration variables can be read from `vars` using the `stringValue` function -
// for example `stringValue(vars, "accessKey")`.
func preConfigureCallback(vars resource.PropertyMap, c shim.ResourceConfig) error {
func preConfigureCallback(resource.PropertyMap, shim.ResourceConfig) error {
return nil
}

Expand All @@ -58,7 +58,7 @@ func Provider() tfbridge.ProviderInfo {
// Create a Pulumi provider mapping
prov := tfbridge.ProviderInfo{
// Instantiate the Terraform provider
P: shimv2.NewProvider(xyz.Provider()),
P: shimv2.NewProvider(xyz.New(version.Version)()),
Name: "xyz",
// DisplayName is a way to be able to change the casing of the provider
// name when being displayed on the Pulumi registry
Expand Down Expand Up @@ -156,9 +156,10 @@ func Provider() tfbridge.ProviderInfo {
},
}

// These are new API's that you may opt to use to automatically compute resource tokens,
// and apply auto aliasing for full backwards compatibility.
// For more information, please reference: https://pkg.go.dev/github.com/pulumi/pulumi-terraform-bridge/v3/pkg/tfbridge#ProviderInfo.ComputeTokens
// These are new API's that you may opt to use to automatically compute resource
// tokens, and apply auto aliasing for full backwards compatibility. For more
// information, please reference:
// https://pkg.go.dev/github.com/pulumi/pulumi-terraform-bridge/v3/pkg/tfbridge#ProviderInfo.ComputeTokens
prov.MustComputeTokens(tokens.SingleModule("xyz_", mainMod,
tokens.MakeStandard(mainPkg)))
prov.MustApplyAutoAliases()
Expand Down

0 comments on commit 9f1974e

Please sign in to comment.