Skip to content

Commit

Permalink
Enable accurate bridge previews by default (#840)
Browse files Browse the repository at this point in the history
This enables the Accurate Previews bridge feature for the pulumi-github
provider. This should improve the quality of our previews for the
provider.

It also updates the GRPC test to match the new behaviour.

Part of pulumi/pulumi-terraform-bridge#2598
  • Loading branch information
VenelinMartinov authored Jan 2, 2025
1 parent d841c23 commit e29565b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
8 changes: 1 addition & 7 deletions provider/provider_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -129,13 +129,7 @@ const repro586 = `[
"diffs": "*",
"detailedDiff": {
"restrictPushes": {
"kind": "UPDATE"
},
"restrictPushes[0].blocksCreations": {},
"restrictPushes[0].pushAllowances": {
"kind": "UPDATE"
},
"restrictPushes[0].pushAllowances[0]": {}
}
},
"hasDetailedDiff": true
},
Expand Down
1 change: 1 addition & 0 deletions provider/resources.go
Original file line number Diff line number Diff line change
Expand Up @@ -260,6 +260,7 @@ func Provider() tfbridge.ProviderInfo {
},
},
EnableZeroDefaultSchemaVersion: true,
EnableAccurateBridgePreview: true,
}

prov.MustComputeTokens(tfbridgetokens.SingleModule("github_", mainMod,
Expand Down

0 comments on commit e29565b

Please sign in to comment.