Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: hashicorp/terraform-plugin-sdk
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v2.0.4
Choose a base ref
...
head repository: hashicorp/terraform-plugin-sdk
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v2.25.0
Choose a head ref
Loading
Showing with 31,897 additions and 10,906 deletions.
  1. +867 −0 .changes/2.24.1.md
  2. +7 −0 .changes/2.25.0.md
  3. 0 .changes/unreleased/.gitkeep
  4. +23 −0 .changie.yaml
  5. +0 −108 .circleci/config.yml
  6. +1 −0 .github/CODEOWNERS
  7. +249 −4 .github/CONTRIBUTING.md
  8. +1 −1 .github/ISSUE_TEMPLATE/bug_report.md
  9. +1 −1 .github/ISSUE_TEMPLATE/feature_request.md
  10. +16 −0 .github/dependabot.yml
  11. +40 −0 .github/workflows/add-content-to-project.yml
  12. +21 −0 .github/workflows/ci-github-actions.yml
  13. +63 −0 .github/workflows/ci-go.yml
  14. +22 −0 .github/workflows/ci-goreleaser.yml
  15. +15 −0 .github/workflows/issue-comment-created.yml
  16. +39 −0 .github/workflows/jira-sync.yml
  17. +23 −0 .github/workflows/lock.yml
  18. +92 −0 .github/workflows/release.yml
  19. +37 −0 .github/workflows/send-to-jira.yml
  20. +6 −0 .gitignore
  21. +0 −1 .go-version
  22. +27 −0 .golangci.yml
  23. +8 −0 .goreleaser.yml
  24. +0 −31 .hashibot.hcl
  25. +334 −0 CHANGELOG.md
  26. +2 −0 LICENSE
  27. +17 −15 Makefile
  28. +9 −7 README.md
  29. +48 −17 ROADMAP.md
  30. +21 −0 SUPPORT.md
  31. +9 −6 diag/helpers.go
  32. +45 −35 go.mod
  33. +169 −407 go.sum
  34. +56 −29 helper/acctest/random.go
  35. +71 −3 helper/acctest/random_test.go
  36. +25 −26 helper/customdiff/compose.go
  37. +16 −1 helper/customdiff/computed.go
  38. +44 −6 helper/customdiff/computed_test.go
  39. +3 −3 helper/customdiff/condition.go
  40. +12 −12 helper/customdiff/condition_test.go
  41. +33 −4 helper/customdiff/force_new.go
  42. +92 −16 helper/customdiff/force_new_test.go
  43. +4 −4 helper/customdiff/testing_test.go
  44. +3 −3 helper/customdiff/validate.go
  45. +3 −3 helper/customdiff/validate_test.go
  46. +30 −9 helper/logging/logging.go
  47. +288 −0 helper/logging/logging_http_transport.go
  48. +286 −0 helper/logging/logging_http_transport_test.go
  49. +10 −1 helper/logging/transport.go
  50. +32 −0 helper/resource/environment_variables.go
  51. +12 −0 helper/resource/error.go
  52. +12 −0 helper/resource/json.go
  53. +352 −23 helper/resource/plugin.go
  54. +299 −0 helper/resource/plugin_test.go
  55. +24 −14 helper/resource/state_shim.go
  56. +58 −0 helper/resource/testcase_providers.go
  57. +469 −0 helper/resource/testcase_providers_test.go
  58. +84 −0 helper/resource/testcase_validate.go
  59. +170 −0 helper/resource/testcase_validate_test.go
  60. +594 −112 helper/resource/testing.go
  61. +13 −13 helper/resource/testing_config.go
  62. +345 −0 helper/resource/testing_example_test.go
  63. +245 −66 helper/resource/testing_new.go
  64. +71 −73 helper/resource/testing_new_config.go
  65. +102 −45 helper/resource/testing_new_import_state.go
  66. +195 −0 helper/resource/testing_new_import_state_test.go
  67. +93 −0 helper/resource/testing_new_refresh_state.go
  68. +13 −13 helper/resource/testing_new_test.go
  69. +358 −0 helper/resource/testing_sets.go
  70. +159 −0 helper/resource/testing_sets_example_test.go
  71. +2,594 −0 helper/resource/testing_sets_test.go
  72. +1,517 −196 helper/resource/testing_test.go
  73. +94 −0 helper/resource/teststep_providers.go
  74. +2,239 −0 helper/resource/teststep_providers_test.go
  75. +125 −0 helper/resource/teststep_validate.go
  76. +215 −0 helper/resource/teststep_validate_test.go
  77. +4 −0 helper/resource/wait.go
  78. +1 −1 {internal/helper/plugin/context → helper/schema}/context.go
  79. +1 −1 helper/schema/field_reader.go
  80. +3 −3 helper/schema/field_reader_config.go
  81. +1 −0 helper/schema/field_reader_config_test.go
  82. +2 −2 helper/schema/field_reader_diff.go
  83. +3 −6 helper/schema/field_reader_map.go
  84. +13 −14 helper/schema/field_writer_map.go
  85. +9 −0 helper/schema/field_writer_map_test.go
  86. +303 −213 {internal/helper/plugin → helper/schema}/grpc_provider.go
  87. +2,669 −0 helper/schema/grpc_provider_test.go
  88. +12 −0 helper/schema/json.go
  89. +48 −8 helper/schema/provider.go
  90. +278 −92 helper/schema/provider_test.go
  91. +599 −88 helper/schema/resource.go
  92. +97 −7 helper/schema/resource_data.go
  93. +4 −1 helper/schema/resource_data_get_source.go
  94. +725 −0 helper/schema/resource_data_test.go
  95. +84 −25 helper/schema/resource_diff.go
  96. +290 −31 helper/schema/resource_diff_test.go
  97. +200 −6 helper/schema/resource_test.go
  98. +7 −2 helper/schema/resource_timeout.go
  99. +9 −9 helper/schema/resource_timeout_test.go
  100. +396 −136 helper/schema/schema.go
  101. +360 −43 helper/schema/schema_test.go
  102. +3 −36 helper/schema/set.go
  103. +19 −5 helper/schema/shims.go
  104. +10 −4 helper/schema/shims_test.go
  105. +1 −1 {internal/helper/plugin → helper/schema}/unknown.go
  106. +1 −1 {internal/helper/plugin → helper/schema}/unknown_test.go
  107. +4 −1 helper/schema/valuetype.go
  108. +3 −3 helper/structure/suppress_json_diff.go
  109. +39 −38 helper/structure/suppress_json_diff_test.go
  110. +4 −4 helper/validation/float_test.go
  111. +8 −8 helper/validation/int_test.go
  112. +6 −6 helper/validation/map.go
  113. +42 −0 helper/validation/meta.go
  114. +99 −3 helper/validation/meta_test.go
  115. +2 −2 helper/validation/strings.go
  116. +10 −10 helper/validation/strings_test.go
  117. +21 −12 helper/validation/testing.go
  118. +2 −2 helper/validation/time.go
  119. +0 −2 internal/addrs/module_instance.go
  120. +0 −130 internal/addrs/resource.go
  121. +0 −33 internal/addrs/resourcemode_string.go
  122. +1 −2 internal/configs/configschema/coerce_value_test.go
  123. +2 −4 internal/configs/configschema/empty_value_test.go
  124. +4 −1 internal/configs/configschema/schema.go
  125. +3 −3 internal/configs/hcl2shim/flatmap.go
  126. +17 −5 internal/configs/hcl2shim/flatmap_test.go
  127. +0 −85 internal/configs/hcl2shim/single_attr_body.go
  128. +0 −6 internal/helper/plugin/doc.go
  129. +0 −1,573 internal/helper/plugin/grpc_provider_test.go
  130. +75 −0 internal/logging/context.go
  131. +193 −0 internal/logging/context_test.go
  132. +24 −0 internal/logging/environment_variables.go
  133. +32 −0 internal/logging/helper_resource.go
  134. +144 −0 internal/logging/helper_resource_test.go
  135. +32 −0 internal/logging/helper_schema.go
  136. +127 −0 internal/logging/helper_schema_test.go
  137. +60 −0 internal/logging/keys.go
  138. +1 −1 internal/plans/objchange/normalize_obj.go
  139. +1 −5 internal/plans/objchange/normalize_obj_test.go
  140. +72 −53 internal/plugin/convert/diagnostics.go
  141. +78 −108 internal/plugin/convert/diagnostics_test.go
  142. +163 −45 internal/plugin/convert/schema.go
  143. +75 −65 internal/plugin/convert/schema_test.go
  144. +0 −3 internal/plugin/mock_proto/generate.go
  145. +0 −622 internal/plugin/mock_proto/mock.go
  146. +51 −13 internal/plugintest/config.go
  147. +108 −0 internal/plugintest/environment_variables.go
  148. +1 −46 internal/plugintest/guard.go
  149. +162 −17 internal/plugintest/helper.go
  150. +30 −58 internal/plugintest/util.go
  151. +199 −109 internal/plugintest/working_dir.go
  152. +69 −0 internal/plugintest/working_dir_json_test.go
  153. +4 −1 internal/tfdiags/diagnostic.go
  154. +1 −19 internal/tfdiags/diagnostics.go
  155. +0 −41 internal/tfdiags/rpc_friendly.go
  156. +0 −48 internal/tfdiags/rpc_friendly_test.go
  157. +0 −16 internal/tfplugin5/generate.sh
  158. +0 −3,634 internal/tfplugin5/tfplugin5.pb.go
  159. +0 −368 internal/tfplugin5/tfplugin5.proto
  160. +0 −85 internal/vault/helper/pgpkeys/encrypt_decrypt.go
  161. +0 −112 internal/vault/helper/pgpkeys/flag.go
  162. +0 −237 internal/vault/helper/pgpkeys/flag_test.go
  163. +0 −118 internal/vault/helper/pgpkeys/keybase.go
  164. +0 −42 internal/vault/helper/pgpkeys/keybase_test.go
  165. +0 −207 internal/vault/sdk/helper/compressutil/compress.go
  166. +0 −99 internal/vault/sdk/helper/compressutil/compress_test.go
  167. +0 −101 internal/vault/sdk/helper/jsonutil/json.go
  168. +0 −141 internal/vault/sdk/helper/jsonutil/json_test.go
  169. +1 −1 meta/meta.go
  170. +23 −37 plugin/debug.go
  171. +0 −41 plugin/grpc_provider.go
  172. +184 −31 plugin/serve.go
  173. +0 −7 scripts/cherry_pick/IGNORE_FILES
  174. +0 −32 scripts/cherry_pick/cherry_pick.sh
  175. +0 −20 scripts/cherry_pick/commit.sh
  176. +0 −13 scripts/gofmtcheck.sh
  177. +0 −27 scripts/protobuf-check.sh
  178. +0 −29 scripts/release/changelog_links.sh
  179. +0 −107 scripts/release/release.sh
  180. +5 −1 terraform/diff.go
  181. +4 −1 terraform/instancetype.go
  182. +2 −2 terraform/resource.go
  183. +4 −1 terraform/resource_mode.go
  184. +7 −7 terraform/resource_test.go
  185. +16 −51 terraform/state.go
  186. +9 −6 terraform/state_filter.go
  187. +3 −93 terraform/state_test.go
  188. +0 −9 tools/tools.go
  189. +60 −0 website/Makefile
  190. +52 −0 website/README.md
  191. +150 −0 website/data/plugin-sdkv2-nav-data.json
  192. +53 −0 website/docs/plugin/sdkv2/best-practices/depending-on-providers.mdx
  193. +798 −0 website/docs/plugin/sdkv2/best-practices/deprecations.mdx
  194. +192 −0 website/docs/plugin/sdkv2/best-practices/detecting-drift.mdx
  195. +82 −0 website/docs/plugin/sdkv2/best-practices/index.mdx
  196. +93 −0 website/docs/plugin/sdkv2/best-practices/naming.mdx
  197. +30 −0 website/docs/plugin/sdkv2/best-practices/other-languages.mdx
  198. +53 −0 website/docs/plugin/sdkv2/best-practices/sensitive-state.mdx
  199. +388 −0 website/docs/plugin/sdkv2/best-practices/testing.mdx
  200. +141 −0 website/docs/plugin/sdkv2/best-practices/versioning.mdx
  201. +31 −0 website/docs/plugin/sdkv2/debugging.mdx
  202. +329 −0 website/docs/plugin/sdkv2/guides/terraform-0.12-compatibility.mdx
  203. +162 −0 website/docs/plugin/sdkv2/guides/v1-upgrade-guide.mdx
  204. +1,053 −0 website/docs/plugin/sdkv2/guides/v2-upgrade-guide.mdx
  205. +27 −0 website/docs/plugin/sdkv2/index.mdx
  206. +203 −0 website/docs/plugin/sdkv2/logging/http-transport.mdx
  207. +25 −0 website/docs/plugin/sdkv2/logging/index.mdx
  208. +63 −0 website/docs/plugin/sdkv2/resources/customizing-differences.mdx
  209. +216 −0 website/docs/plugin/sdkv2/resources/import.mdx
  210. +28 −0 website/docs/plugin/sdkv2/resources/index.mdx
  211. +159 −0 website/docs/plugin/sdkv2/resources/retries-and-customizable-timeouts.mdx
  212. +274 −0 website/docs/plugin/sdkv2/resources/state-migration.mdx
  213. +71 −0 website/docs/plugin/sdkv2/schemas/index.mdx
  214. +425 −0 website/docs/plugin/sdkv2/schemas/schema-behaviors.mdx
  215. +174 −0 website/docs/plugin/sdkv2/schemas/schema-methods.mdx
  216. +409 −0 website/docs/plugin/sdkv2/schemas/schema-types.mdx
  217. +309 −0 website/docs/plugin/sdkv2/testing/acceptance-tests/index.mdx
  218. +127 −0 website/docs/plugin/sdkv2/testing/acceptance-tests/sweepers.mdx
  219. +320 −0 website/docs/plugin/sdkv2/testing/acceptance-tests/testcase.mdx
  220. +305 −0 website/docs/plugin/sdkv2/testing/acceptance-tests/teststep.mdx
  221. +74 −0 website/docs/plugin/sdkv2/testing/index.mdx
  222. +8 −0 website/docs/plugin/sdkv2/testing/testing-api.mdx
  223. +8 −0 website/docs/plugin/sdkv2/testing/testing-patterns.mdx
  224. +99 −0 website/docs/plugin/sdkv2/testing/unit-testing.mdx
  225. 0 website/img/.gitkeep
  226. +2,726 −0 website/package-lock.json
  227. +15 −0 website/package.json
  228. +18 −0 website/scripts/should-build.sh
  229. +52 −0 website/scripts/website-build.sh
  230. +44 −0 website/scripts/website-start.sh
Loading