appoptics / terraform-provider-appoptics

Apache License 2.0
4 stars 2 forks source link

update to go v1.17, update to terraform-plugin-sdk #47

Closed varbhat closed 2 years ago

varbhat commented 2 years ago
  1. Updated minimum version of go required for compilation to v1.17
  2. terraform has changed it's SDK import path(package required to write provider) from "github.com/hashicorp/terraform/terraform" to "github.com/hashicorp/terraform-plugin-sdk". I have also updated import path here.
  3. It compiles now. Even though it compiled at first, test case https://github.com/varbhat/terraform-provider-appoptics/blob/336d3ce148ee3a318b627ce0dd2eb63680e4206a/appoptics/provider_test.go#L21 was failing which is related to https://github.com/varbhat/terraform-provider-appoptics/blob/336d3ce148ee3a318b627ce0dd2eb63680e4206a/appoptics/resource_appoptics_space_chart.go#L18 . It displayed the following error message:
err: 1 error occurred:
            * resource appoptics_dashboard_chart: ConflictsWith: metric configuration block reference (stream.composite) can only be used with TypeList and MaxItems: 1 configuration blocks

Tests passed after i commented out ConflictsWith of tags,group_function and composite (I need to solve this out)