From f667ee30523214fa272c9c94d7123f83ea91e397 Mon Sep 17 00:00:00 2001 From: Jonathan Thurman Date: Tue, 21 Sep 2021 10:50:10 -0700 Subject: [PATCH 1/5] chore: update build tags for go1.17 --- newrelic/data_source_newrelic_account_test.go | 1 + newrelic/data_source_newrelic_alert_channel_test.go | 1 + newrelic/data_source_newrelic_alert_policy_test.go | 1 + newrelic/data_source_newrelic_application_test.go | 1 + newrelic/data_source_newrelic_entity_integration_test.go | 1 + newrelic/data_source_newrelic_entity_test.go | 1 + newrelic/data_source_newrelic_key_transaction_test.go | 1 + .../data_source_newrelic_synthetics_monitor_location_test.go | 1 + newrelic/data_source_newrelic_synthetics_monitor_test.go | 1 + .../data_source_newrelic_synthetics_secure_credential_test.go | 1 + newrelic/helpers_test.go | 2 ++ newrelic/helpers_unit_test.go | 1 + newrelic/import_resource_newrelic_api_access_key_test.go | 1 + newrelic/provider_integration_test.go | 1 + newrelic/provider_test.go | 2 ++ newrelic/provider_unit_test.go | 1 + newrelic/resource_newrelic_alert_channel_test.go | 1 + newrelic/resource_newrelic_alert_condition_integration_test.go | 1 + newrelic/resource_newrelic_alert_condition_test.go | 2 ++ newrelic/resource_newrelic_alert_condition_unit_test.go | 1 + newrelic/resource_newrelic_alert_muting_rule_test.go | 1 + newrelic/resource_newrelic_alert_policy_channel_test.go | 1 + newrelic/resource_newrelic_alert_policy_integration_test.go | 1 + newrelic/resource_newrelic_alert_policy_test.go | 2 ++ newrelic/resource_newrelic_alert_policy_unit_test.go | 1 + newrelic/resource_newrelic_api_access_key_test.go | 1 + newrelic/resource_newrelic_application_settings_test.go | 1 + newrelic/resource_newrelic_entity_tags_test.go | 1 + newrelic/resource_newrelic_events_to_metrics_rule_test.go | 1 + newrelic/resource_newrelic_infra_alert_condition_test.go | 1 + newrelic/resource_newrelic_insights_event_test.go | 1 + newrelic/resource_newrelic_nrql_alert_condition_test.go | 1 + newrelic/resource_newrelic_nrql_drop_rule_test.go | 1 + newrelic/resource_newrelic_one_dashboard_raw_test.go | 1 + newrelic/resource_newrelic_one_dashboard_test.go | 1 + newrelic/resource_newrelic_synthetics_alert_condition_test.go | 1 + newrelic/resource_newrelic_synthetics_monitor_script_test.go | 1 + newrelic/resource_newrelic_synthetics_monitor_test.go | 1 + ...synthetics_multilocation_alert_condition_integration_test.go | 1 + newrelic/resource_newrelic_synthetics_secure_credential_test.go | 1 + newrelic/resource_newrelic_workload_test.go | 1 + newrelic/structures_newrelic_alert_channel_test.go | 1 + newrelic/structures_newrelic_alert_condition_test.go | 1 + newrelic/structures_newrelic_alert_muting_rule_test.go | 1 + newrelic/structures_newrelic_alert_policy_channel_test.go | 1 + newrelic/structures_newrelic_infra_alert_condition_test.go | 1 + newrelic/structures_newrelic_nrql_alert_condition_test.go | 1 + ...es_newrelic_synthetics_multilocation_alert_condition_test.go | 1 + newrelic/structures_test.go | 1 + newrelic/validation_test.go | 1 + tools/tools.go | 1 + 51 files changed, 55 insertions(+) diff --git a/newrelic/data_source_newrelic_account_test.go b/newrelic/data_source_newrelic_account_test.go index 8adaa55e0..7f00ab11a 100644 --- a/newrelic/data_source_newrelic_account_test.go +++ b/newrelic/data_source_newrelic_account_test.go @@ -1,3 +1,4 @@ +//go:build integration // +build integration package newrelic diff --git a/newrelic/data_source_newrelic_alert_channel_test.go b/newrelic/data_source_newrelic_alert_channel_test.go index 6bbd25535..8b8e21848 100644 --- a/newrelic/data_source_newrelic_alert_channel_test.go +++ b/newrelic/data_source_newrelic_alert_channel_test.go @@ -1,3 +1,4 @@ +//go:build integration // +build integration package newrelic diff --git a/newrelic/data_source_newrelic_alert_policy_test.go b/newrelic/data_source_newrelic_alert_policy_test.go index 336ea44c2..34e496561 100644 --- a/newrelic/data_source_newrelic_alert_policy_test.go +++ b/newrelic/data_source_newrelic_alert_policy_test.go @@ -1,3 +1,4 @@ +//go:build integration // +build integration package newrelic diff --git a/newrelic/data_source_newrelic_application_test.go b/newrelic/data_source_newrelic_application_test.go index c0c55654f..07c78b01b 100644 --- a/newrelic/data_source_newrelic_application_test.go +++ b/newrelic/data_source_newrelic_application_test.go @@ -1,3 +1,4 @@ +//go:build integration // +build integration package newrelic diff --git a/newrelic/data_source_newrelic_entity_integration_test.go b/newrelic/data_source_newrelic_entity_integration_test.go index 74a73432e..07fd6914f 100644 --- a/newrelic/data_source_newrelic_entity_integration_test.go +++ b/newrelic/data_source_newrelic_entity_integration_test.go @@ -1,3 +1,4 @@ +//go:build integration // +build integration package newrelic diff --git a/newrelic/data_source_newrelic_entity_test.go b/newrelic/data_source_newrelic_entity_test.go index a8d6afb2e..ef1fa9eed 100644 --- a/newrelic/data_source_newrelic_entity_test.go +++ b/newrelic/data_source_newrelic_entity_test.go @@ -1,3 +1,4 @@ +//go:build unit // +build unit package newrelic diff --git a/newrelic/data_source_newrelic_key_transaction_test.go b/newrelic/data_source_newrelic_key_transaction_test.go index 3f7bffb89..142d52c92 100644 --- a/newrelic/data_source_newrelic_key_transaction_test.go +++ b/newrelic/data_source_newrelic_key_transaction_test.go @@ -1,3 +1,4 @@ +//go:build integration // +build integration package newrelic diff --git a/newrelic/data_source_newrelic_synthetics_monitor_location_test.go b/newrelic/data_source_newrelic_synthetics_monitor_location_test.go index 7d0cf6745..90d993098 100644 --- a/newrelic/data_source_newrelic_synthetics_monitor_location_test.go +++ b/newrelic/data_source_newrelic_synthetics_monitor_location_test.go @@ -1,3 +1,4 @@ +//go:build integration // +build integration package newrelic diff --git a/newrelic/data_source_newrelic_synthetics_monitor_test.go b/newrelic/data_source_newrelic_synthetics_monitor_test.go index 2c1b68b65..e97d523be 100644 --- a/newrelic/data_source_newrelic_synthetics_monitor_test.go +++ b/newrelic/data_source_newrelic_synthetics_monitor_test.go @@ -1,3 +1,4 @@ +//go:build integration // +build integration package newrelic diff --git a/newrelic/data_source_newrelic_synthetics_secure_credential_test.go b/newrelic/data_source_newrelic_synthetics_secure_credential_test.go index 1242e790a..40d99e60a 100644 --- a/newrelic/data_source_newrelic_synthetics_secure_credential_test.go +++ b/newrelic/data_source_newrelic_synthetics_secure_credential_test.go @@ -1,3 +1,4 @@ +//go:build integration // +build integration package newrelic diff --git a/newrelic/helpers_test.go b/newrelic/helpers_test.go index b574d6c3b..f206d3240 100644 --- a/newrelic/helpers_test.go +++ b/newrelic/helpers_test.go @@ -1,4 +1,6 @@ +//go:build integration || unit // +build integration unit + // // Test Helpers // diff --git a/newrelic/helpers_unit_test.go b/newrelic/helpers_unit_test.go index 4bfcc1da0..4bc6869c8 100644 --- a/newrelic/helpers_unit_test.go +++ b/newrelic/helpers_unit_test.go @@ -1,3 +1,4 @@ +//go:build unit // +build unit package newrelic diff --git a/newrelic/import_resource_newrelic_api_access_key_test.go b/newrelic/import_resource_newrelic_api_access_key_test.go index 86a2324c3..aebacc8ea 100644 --- a/newrelic/import_resource_newrelic_api_access_key_test.go +++ b/newrelic/import_resource_newrelic_api_access_key_test.go @@ -1,3 +1,4 @@ +//go:build integration // +build integration package newrelic diff --git a/newrelic/provider_integration_test.go b/newrelic/provider_integration_test.go index 735e25615..f8833c1ab 100644 --- a/newrelic/provider_integration_test.go +++ b/newrelic/provider_integration_test.go @@ -1,3 +1,4 @@ +//go:build integration // +build integration package newrelic diff --git a/newrelic/provider_test.go b/newrelic/provider_test.go index 3a539f0fa..56582dedf 100644 --- a/newrelic/provider_test.go +++ b/newrelic/provider_test.go @@ -1,4 +1,6 @@ +//go:build integration || unit // +build integration unit + // // Test helpers // diff --git a/newrelic/provider_unit_test.go b/newrelic/provider_unit_test.go index d5a98513a..50094cac6 100644 --- a/newrelic/provider_unit_test.go +++ b/newrelic/provider_unit_test.go @@ -1,3 +1,4 @@ +//go:build unit // +build unit package newrelic diff --git a/newrelic/resource_newrelic_alert_channel_test.go b/newrelic/resource_newrelic_alert_channel_test.go index e789d76dd..6ae8b3014 100644 --- a/newrelic/resource_newrelic_alert_channel_test.go +++ b/newrelic/resource_newrelic_alert_channel_test.go @@ -1,3 +1,4 @@ +//go:build integration // +build integration package newrelic diff --git a/newrelic/resource_newrelic_alert_condition_integration_test.go b/newrelic/resource_newrelic_alert_condition_integration_test.go index b00ee2a84..c6648d7db 100644 --- a/newrelic/resource_newrelic_alert_condition_integration_test.go +++ b/newrelic/resource_newrelic_alert_condition_integration_test.go @@ -1,3 +1,4 @@ +//go:build integration // +build integration package newrelic diff --git a/newrelic/resource_newrelic_alert_condition_test.go b/newrelic/resource_newrelic_alert_condition_test.go index fc27dda24..24625c436 100644 --- a/newrelic/resource_newrelic_alert_condition_test.go +++ b/newrelic/resource_newrelic_alert_condition_test.go @@ -1,4 +1,6 @@ +//go:build integration || unit // +build integration unit + // // Test helpers // diff --git a/newrelic/resource_newrelic_alert_condition_unit_test.go b/newrelic/resource_newrelic_alert_condition_unit_test.go index bcce0f11a..58a0b9290 100644 --- a/newrelic/resource_newrelic_alert_condition_unit_test.go +++ b/newrelic/resource_newrelic_alert_condition_unit_test.go @@ -1,3 +1,4 @@ +//go:build unit // +build unit package newrelic diff --git a/newrelic/resource_newrelic_alert_muting_rule_test.go b/newrelic/resource_newrelic_alert_muting_rule_test.go index 7e69a5612..4d0cbe09d 100644 --- a/newrelic/resource_newrelic_alert_muting_rule_test.go +++ b/newrelic/resource_newrelic_alert_muting_rule_test.go @@ -1,3 +1,4 @@ +//go:build integration // +build integration package newrelic diff --git a/newrelic/resource_newrelic_alert_policy_channel_test.go b/newrelic/resource_newrelic_alert_policy_channel_test.go index fcb2edb11..ec6e55849 100644 --- a/newrelic/resource_newrelic_alert_policy_channel_test.go +++ b/newrelic/resource_newrelic_alert_policy_channel_test.go @@ -1,3 +1,4 @@ +//go:build integration // +build integration package newrelic diff --git a/newrelic/resource_newrelic_alert_policy_integration_test.go b/newrelic/resource_newrelic_alert_policy_integration_test.go index 125eb8bc3..588d96202 100644 --- a/newrelic/resource_newrelic_alert_policy_integration_test.go +++ b/newrelic/resource_newrelic_alert_policy_integration_test.go @@ -1,3 +1,4 @@ +//go:build integration // +build integration package newrelic diff --git a/newrelic/resource_newrelic_alert_policy_test.go b/newrelic/resource_newrelic_alert_policy_test.go index 65c3e2399..737607ea2 100644 --- a/newrelic/resource_newrelic_alert_policy_test.go +++ b/newrelic/resource_newrelic_alert_policy_test.go @@ -1,4 +1,6 @@ +//go:build integration || unit // +build integration unit + // // Test helpers // diff --git a/newrelic/resource_newrelic_alert_policy_unit_test.go b/newrelic/resource_newrelic_alert_policy_unit_test.go index 3e0bbeadf..1ed23ace3 100644 --- a/newrelic/resource_newrelic_alert_policy_unit_test.go +++ b/newrelic/resource_newrelic_alert_policy_unit_test.go @@ -1,3 +1,4 @@ +//go:build unit // +build unit package newrelic diff --git a/newrelic/resource_newrelic_api_access_key_test.go b/newrelic/resource_newrelic_api_access_key_test.go index bff8911a0..b15bae735 100644 --- a/newrelic/resource_newrelic_api_access_key_test.go +++ b/newrelic/resource_newrelic_api_access_key_test.go @@ -1,3 +1,4 @@ +//go:build integration // +build integration package newrelic diff --git a/newrelic/resource_newrelic_application_settings_test.go b/newrelic/resource_newrelic_application_settings_test.go index 45841854d..28f61014e 100644 --- a/newrelic/resource_newrelic_application_settings_test.go +++ b/newrelic/resource_newrelic_application_settings_test.go @@ -1,3 +1,4 @@ +//go:build integration // +build integration package newrelic diff --git a/newrelic/resource_newrelic_entity_tags_test.go b/newrelic/resource_newrelic_entity_tags_test.go index cb10430a0..af02cd49f 100644 --- a/newrelic/resource_newrelic_entity_tags_test.go +++ b/newrelic/resource_newrelic_entity_tags_test.go @@ -1,3 +1,4 @@ +//go:build integration // +build integration package newrelic diff --git a/newrelic/resource_newrelic_events_to_metrics_rule_test.go b/newrelic/resource_newrelic_events_to_metrics_rule_test.go index b714415e3..c3f0700f4 100644 --- a/newrelic/resource_newrelic_events_to_metrics_rule_test.go +++ b/newrelic/resource_newrelic_events_to_metrics_rule_test.go @@ -1,3 +1,4 @@ +//go:build integration // +build integration package newrelic diff --git a/newrelic/resource_newrelic_infra_alert_condition_test.go b/newrelic/resource_newrelic_infra_alert_condition_test.go index 1d05d1e1e..b88a6211e 100644 --- a/newrelic/resource_newrelic_infra_alert_condition_test.go +++ b/newrelic/resource_newrelic_infra_alert_condition_test.go @@ -1,3 +1,4 @@ +//go:build integration // +build integration package newrelic diff --git a/newrelic/resource_newrelic_insights_event_test.go b/newrelic/resource_newrelic_insights_event_test.go index 8ab1d01e2..f2965c4c9 100644 --- a/newrelic/resource_newrelic_insights_event_test.go +++ b/newrelic/resource_newrelic_insights_event_test.go @@ -1,3 +1,4 @@ +//go:build integration // +build integration package newrelic diff --git a/newrelic/resource_newrelic_nrql_alert_condition_test.go b/newrelic/resource_newrelic_nrql_alert_condition_test.go index 9fe88638c..d2cf91d91 100644 --- a/newrelic/resource_newrelic_nrql_alert_condition_test.go +++ b/newrelic/resource_newrelic_nrql_alert_condition_test.go @@ -1,3 +1,4 @@ +//go:build integration // +build integration package newrelic diff --git a/newrelic/resource_newrelic_nrql_drop_rule_test.go b/newrelic/resource_newrelic_nrql_drop_rule_test.go index 942024719..14d1280fb 100644 --- a/newrelic/resource_newrelic_nrql_drop_rule_test.go +++ b/newrelic/resource_newrelic_nrql_drop_rule_test.go @@ -1,3 +1,4 @@ +//go:build integration // +build integration package newrelic diff --git a/newrelic/resource_newrelic_one_dashboard_raw_test.go b/newrelic/resource_newrelic_one_dashboard_raw_test.go index d93451880..47f3676e4 100644 --- a/newrelic/resource_newrelic_one_dashboard_raw_test.go +++ b/newrelic/resource_newrelic_one_dashboard_raw_test.go @@ -1,3 +1,4 @@ +//go:build integration // +build integration package newrelic diff --git a/newrelic/resource_newrelic_one_dashboard_test.go b/newrelic/resource_newrelic_one_dashboard_test.go index 4e6aab68b..ec43a7297 100644 --- a/newrelic/resource_newrelic_one_dashboard_test.go +++ b/newrelic/resource_newrelic_one_dashboard_test.go @@ -1,3 +1,4 @@ +//go:build integration // +build integration package newrelic diff --git a/newrelic/resource_newrelic_synthetics_alert_condition_test.go b/newrelic/resource_newrelic_synthetics_alert_condition_test.go index 06e4fc8b7..fa2fe3801 100644 --- a/newrelic/resource_newrelic_synthetics_alert_condition_test.go +++ b/newrelic/resource_newrelic_synthetics_alert_condition_test.go @@ -1,3 +1,4 @@ +//go:build integration // +build integration package newrelic diff --git a/newrelic/resource_newrelic_synthetics_monitor_script_test.go b/newrelic/resource_newrelic_synthetics_monitor_script_test.go index 8208f619c..9b835ec51 100644 --- a/newrelic/resource_newrelic_synthetics_monitor_script_test.go +++ b/newrelic/resource_newrelic_synthetics_monitor_script_test.go @@ -1,3 +1,4 @@ +//go:build integration // +build integration package newrelic diff --git a/newrelic/resource_newrelic_synthetics_monitor_test.go b/newrelic/resource_newrelic_synthetics_monitor_test.go index cb010c23d..32c8244e5 100644 --- a/newrelic/resource_newrelic_synthetics_monitor_test.go +++ b/newrelic/resource_newrelic_synthetics_monitor_test.go @@ -1,3 +1,4 @@ +//go:build integration // +build integration package newrelic diff --git a/newrelic/resource_newrelic_synthetics_multilocation_alert_condition_integration_test.go b/newrelic/resource_newrelic_synthetics_multilocation_alert_condition_integration_test.go index 807856c40..ed339e67b 100644 --- a/newrelic/resource_newrelic_synthetics_multilocation_alert_condition_integration_test.go +++ b/newrelic/resource_newrelic_synthetics_multilocation_alert_condition_integration_test.go @@ -1,3 +1,4 @@ +//go:build integration // +build integration package newrelic diff --git a/newrelic/resource_newrelic_synthetics_secure_credential_test.go b/newrelic/resource_newrelic_synthetics_secure_credential_test.go index e53356951..f182da8d8 100644 --- a/newrelic/resource_newrelic_synthetics_secure_credential_test.go +++ b/newrelic/resource_newrelic_synthetics_secure_credential_test.go @@ -1,3 +1,4 @@ +//go:build integration // +build integration package newrelic diff --git a/newrelic/resource_newrelic_workload_test.go b/newrelic/resource_newrelic_workload_test.go index 85297d503..6ce764aea 100644 --- a/newrelic/resource_newrelic_workload_test.go +++ b/newrelic/resource_newrelic_workload_test.go @@ -1,3 +1,4 @@ +//go:build integration // +build integration package newrelic diff --git a/newrelic/structures_newrelic_alert_channel_test.go b/newrelic/structures_newrelic_alert_channel_test.go index 08a3bb277..fd54c9383 100644 --- a/newrelic/structures_newrelic_alert_channel_test.go +++ b/newrelic/structures_newrelic_alert_channel_test.go @@ -1,3 +1,4 @@ +//go:build unit // +build unit package newrelic diff --git a/newrelic/structures_newrelic_alert_condition_test.go b/newrelic/structures_newrelic_alert_condition_test.go index 636132824..ed48fd066 100644 --- a/newrelic/structures_newrelic_alert_condition_test.go +++ b/newrelic/structures_newrelic_alert_condition_test.go @@ -1,3 +1,4 @@ +//go:build integration // +build integration package newrelic diff --git a/newrelic/structures_newrelic_alert_muting_rule_test.go b/newrelic/structures_newrelic_alert_muting_rule_test.go index ed17c6d49..84f3ac6e5 100644 --- a/newrelic/structures_newrelic_alert_muting_rule_test.go +++ b/newrelic/structures_newrelic_alert_muting_rule_test.go @@ -1,3 +1,4 @@ +//go:build integration // +build integration package newrelic diff --git a/newrelic/structures_newrelic_alert_policy_channel_test.go b/newrelic/structures_newrelic_alert_policy_channel_test.go index 6945d2c35..aea5b8624 100644 --- a/newrelic/structures_newrelic_alert_policy_channel_test.go +++ b/newrelic/structures_newrelic_alert_policy_channel_test.go @@ -1,3 +1,4 @@ +//go:build unit // +build unit package newrelic diff --git a/newrelic/structures_newrelic_infra_alert_condition_test.go b/newrelic/structures_newrelic_infra_alert_condition_test.go index a72b45669..077ab0e86 100644 --- a/newrelic/structures_newrelic_infra_alert_condition_test.go +++ b/newrelic/structures_newrelic_infra_alert_condition_test.go @@ -1,3 +1,4 @@ +//go:build unit // +build unit package newrelic diff --git a/newrelic/structures_newrelic_nrql_alert_condition_test.go b/newrelic/structures_newrelic_nrql_alert_condition_test.go index b588820e0..5297b5ebb 100644 --- a/newrelic/structures_newrelic_nrql_alert_condition_test.go +++ b/newrelic/structures_newrelic_nrql_alert_condition_test.go @@ -1,3 +1,4 @@ +//go:build unit // +build unit package newrelic diff --git a/newrelic/structures_newrelic_synthetics_multilocation_alert_condition_test.go b/newrelic/structures_newrelic_synthetics_multilocation_alert_condition_test.go index d3001df7e..de741f567 100644 --- a/newrelic/structures_newrelic_synthetics_multilocation_alert_condition_test.go +++ b/newrelic/structures_newrelic_synthetics_multilocation_alert_condition_test.go @@ -1,3 +1,4 @@ +//go:build unit // +build unit package newrelic diff --git a/newrelic/structures_test.go b/newrelic/structures_test.go index c55cc44f3..8d1d00ea6 100644 --- a/newrelic/structures_test.go +++ b/newrelic/structures_test.go @@ -1,3 +1,4 @@ +//go:build unit // +build unit package newrelic diff --git a/newrelic/validation_test.go b/newrelic/validation_test.go index 2fdadc6f7..5f4e595ca 100644 --- a/newrelic/validation_test.go +++ b/newrelic/validation_test.go @@ -1,3 +1,4 @@ +//go:build unit // +build unit package newrelic diff --git a/tools/tools.go b/tools/tools.go index 85c1dfed6..448031958 100644 --- a/tools/tools.go +++ b/tools/tools.go @@ -1,3 +1,4 @@ +//go:build tools // +build tools package tools From c9787def57336adbb6a965f5ca0f980bddeddbf2 Mon Sep 17 00:00:00 2001 From: Jonathan Thurman Date: Tue, 21 Sep 2021 10:53:54 -0700 Subject: [PATCH 2/5] chore: spelling fix --- .../guides/migration_guide_newrelic_dashboard.html.markdown | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/website/docs/guides/migration_guide_newrelic_dashboard.html.markdown b/website/docs/guides/migration_guide_newrelic_dashboard.html.markdown index b56a30cca..6cdcbbedb 100644 --- a/website/docs/guides/migration_guide_newrelic_dashboard.html.markdown +++ b/website/docs/guides/migration_guide_newrelic_dashboard.html.markdown @@ -60,7 +60,7 @@ Once the `newrelic_one_dashboard` is in a good state we need to import the new s `terraform import newrelic_one_dashboard.[[NAME_OF_RESOURCE]] [[DASHBOARD_GUID]]` -After the import has completed succesfully, you can delete the old `newrelic_dashboard` from the Terraform state. Make sure you replace `[[NAME_OF_RESOURCE]]` with the right resource name. +After the import has completed successfully, you can delete the old `newrelic_dashboard` from the Terraform state. Make sure you replace `[[NAME_OF_RESOURCE]]` with the right resource name. `terraform state rm 'newrelic_dashboard.[[NAME_OF_RESOURCE]]` From 80c168062296367576bf2e3a4c21f8a5b69943e5 Mon Sep 17 00:00:00 2001 From: Jonathan Thurman Date: Tue, 21 Sep 2021 11:00:14 -0700 Subject: [PATCH 3/5] chore(deps): Update github.com/golangci/golangci-lint v1.42.1 --- .golangci.yml | 5 +-- tools/go.mod | 2 +- tools/go.sum | 86 ++++++++++++++++++++++++++------------------------- 3 files changed, 46 insertions(+), 47 deletions(-) diff --git a/.golangci.yml b/.golangci.yml index 18b64eb60..affcd6d00 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -8,9 +8,6 @@ linters-settings: errcheck: ignoretests: true ignore: github.com/hashicorp/terraform-plugin-sdk/helper/schema:ForceNew|Set,github.com/hashicorp/terraform-plugin-sdk/helper/schema:Set,github.com/newrelic/terraform-provider-newrelic/newrelic:Set,io:Close|Write - golint: - # minimal confidence for issues, default is 0.8 - min-confidence: 0.5 gocyclo: # minimal code complexity to report, 30 by default (but we recommend 10-20) min-complexity: 20 @@ -34,11 +31,11 @@ linters: - errcheck - gocyclo - gofmt - - golint - gosimple - govet - ineffassign - misspell + - revive - staticcheck - structcheck - unconvert diff --git a/tools/go.mod b/tools/go.mod index 79dadfc34..6200eaa42 100644 --- a/tools/go.mod +++ b/tools/go.mod @@ -6,7 +6,7 @@ require ( github.com/bflad/tfproviderlint v0.27.1 github.com/client9/misspell v0.3.4 github.com/git-chglog/git-chglog v0.15.0 - github.com/golangci/golangci-lint v1.41.1 + github.com/golangci/golangci-lint v1.42.1 github.com/goreleaser/goreleaser v0.179.0 github.com/llorllale/go-gitlint v0.0.0-20210608233938-d6303cc52cc5 github.com/psampaz/go-mod-outdated v0.8.0 diff --git a/tools/go.sum b/tools/go.sum index f0bc1ba9a..54dacad2d 100644 --- a/tools/go.sum +++ b/tools/go.sum @@ -78,6 +78,8 @@ github.com/AlecAivazis/survey/v2 v2.2.14 h1:aTYTaCh1KLd+YWilkeJ65Ph78g48NVQ3ay9x github.com/AlecAivazis/survey/v2 v2.2.14/go.mod h1:TH2kPCDU3Kqq7pLbnCWwZXDBjnhZtmsCle5EiYDJ2fg= github.com/AlekSi/pointer v1.1.0 h1:SSDMPcXD9jSl8FPy9cRzoRaMJtm9g9ggGTxecRUbQoI= github.com/AlekSi/pointer v1.1.0/go.mod h1:y7BvfRI3wXPWKXEBhU71nbnIEEZX0QTSB2Bj48UJIZE= +github.com/Antonboom/errname v0.1.4 h1:lGSlI42Gm4bI1e+IITtXJXvxFM8N7naWimVFKcb0McY= +github.com/Antonboom/errname v0.1.4/go.mod h1:jRXo3m0E0EuCnK3wbsSVH3X55Z4iTDLl6ZfCxwFj4TM= github.com/Azure/azure-amqp-common-go/v3 v3.1.0/go.mod h1:PBIGdzcO1teYoufTKMcGibdKaYZv4avS+O6LNIp8bq0= github.com/Azure/azure-amqp-common-go/v3 v3.1.1/go.mod h1:YsDaPfaO9Ub2XeSKdIy2DfwuiQlHQCauHJwSqtrkECI= github.com/Azure/azure-pipeline-go v0.2.3 h1:7U9HBg1JFK3jHl5qmo4CTZKFTVgMwdFHMVtCdfBE21U= @@ -124,8 +126,9 @@ github.com/Azure/go-autorest/logger v0.2.1 h1:IG7i4p/mDa2Ce4TRyAO8IHnVhAVF3RFU+Z github.com/Azure/go-autorest/logger v0.2.1/go.mod h1:T9E3cAhj2VqvPOtCYAvby9aBXkZmbF5NWuPV8+WeEW8= github.com/Azure/go-autorest/tracing v0.6.0 h1:TYi4+3m5t6K48TGI9AUdb+IzbnSxvnvUMfuitfgcfuo= github.com/Azure/go-autorest/tracing v0.6.0/go.mod h1:+vhtPC754Xsa23ID7GlGsrdKBpUA79WCAKPPZVC2DeU= -github.com/BurntSushi/toml v0.3.1 h1:WXkYYl6Yr3qBf1K79EBnL4mak0OimBfB0XUf9Vl28OQ= github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU= +github.com/BurntSushi/toml v0.4.1 h1:GaI7EiDXDRfa8VshkTj7Fym7ha+y8/XxIgD2okUIjLw= +github.com/BurntSushi/toml v0.4.1/go.mod h1:CxXYINrC8qIiEnFrOxCa7Jy5BFHlXnUU2pbicEuybxQ= github.com/BurntSushi/xgb v0.0.0-20160522181843-27f122750802/go.mod h1:IVnqGOEym/WlBOVXweHU+Q+/VP0lqqI8lqeDx9IjBqo= github.com/DisgoOrg/disgohook v1.4.3 h1:JtZiV0jAku9NZRYD6wVH7tWY1617rh4tRqn4ihTUJRc= github.com/DisgoOrg/disgohook v1.4.3/go.mod h1:aHNyBHq1pBbdWrkCq3ZCSBeavUoGWZAAT4+609EcrvU= @@ -165,7 +168,7 @@ github.com/ProtonMail/go-mime v0.0.0-20190923161245-9b5a4261663a h1:W6RrgN/sTxg1 github.com/ProtonMail/go-mime v0.0.0-20190923161245-9b5a4261663a/go.mod h1:NYt+V3/4rEeDuaev/zw1zCq8uqVEuPHzDPo3OZrlGJ4= github.com/ProtonMail/gopenpgp/v2 v2.2.0 h1:XLsUEY/dQhQcOg8r0ijNvMTJIKM4EBkf3K7zV+kcGj4= github.com/ProtonMail/gopenpgp/v2 v2.2.0/go.mod h1:ajUlBGvxMH1UBZnaYO3d1FSVzjiC6kK9XlZYGiDCvpM= -github.com/StackExchange/wmi v0.0.0-20190523213315-cbe66965904d/go.mod h1:3eOhrUMpNV+6aFIbp5/iudMxNCF27Vw2OZgy4xEx0Fg= +github.com/StackExchange/wmi v1.2.1/go.mod h1:rcmrprowKIVzvc+NUiLncP2uuArMWLCbu9SBzvHz7e8= github.com/agext/levenshtein v1.2.1/go.mod h1:JEDfjyjHDjOF/1e4FlBE/PkbqA9OfWu2ki2W0IB5558= github.com/agext/levenshtein v1.2.2/go.mod h1:JEDfjyjHDjOF/1e4FlBE/PkbqA9OfWu2ki2W0IB5558= github.com/agl/ed25519 v0.0.0-20170116200512-5312a6153412/go.mod h1:WPjqKcmVOxf0XSf3YxCJs6N6AOSrOx3obionmG7T0y0= @@ -318,8 +321,8 @@ github.com/cpuguy83/go-md2man/v2 v2.0.0 h1:EoUDS0afbrsXAZ9YQ9jdu/mZ2sXgT1/2yyNng github.com/cpuguy83/go-md2man/v2 v2.0.0/go.mod h1:maD7wRr/U5Z6m/iR4s+kqSMx2CaBsrgA7czyZG/E6dU= github.com/creack/pty v1.1.7/go.mod h1:lj5s0c3V2DBrqTV7llrYr5NG6My20zk30Fl46Y7DoTY= github.com/creack/pty v1.1.9/go.mod h1:oKZEueFk5CKHvIhNR5MUki03XCEU+Q6VDXinZuGJ33E= -github.com/daixiang0/gci v0.2.8 h1:1mrIGMBQsBu0P7j7m1M8Lb+ZeZxsZL+jyGX4YoMJJpg= -github.com/daixiang0/gci v0.2.8/go.mod h1:+4dZ7TISfSmqfAGv59ePaHfNzgGtIkHAhhdKggP1JAc= +github.com/daixiang0/gci v0.2.9 h1:iwJvwQpBZmMg31w+QQ6jsyZ54KEATn6/nfARbBNW294= +github.com/daixiang0/gci v0.2.9/go.mod h1:+4dZ7TISfSmqfAGv59ePaHfNzgGtIkHAhhdKggP1JAc= github.com/davecgh/go-spew v0.0.0-20161028175848-04cdfd42973b/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= @@ -410,7 +413,7 @@ github.com/go-kit/kit v0.8.0/go.mod h1:xBxKIO96dXMWWy0MnWVtmwkA9/13aqxPnvrjFYMA2 github.com/go-kit/kit v0.9.0/go.mod h1:xBxKIO96dXMWWy0MnWVtmwkA9/13aqxPnvrjFYMA2as= github.com/go-logfmt/logfmt v0.3.0/go.mod h1:Qt1PoO58o5twSAckw1HlFXLmHsOX5/0LbT9GBnD5lWE= github.com/go-logfmt/logfmt v0.4.0/go.mod h1:3RMwSq7FuexP4Kalkev3ejPJsZTpXXBr9+V4qmtdjCk= -github.com/go-ole/go-ole v1.2.4/go.mod h1:XCwSNxSkXRo4vlyPy93sltvi/qJq0jqQhjqQNIwKuxM= +github.com/go-ole/go-ole v1.2.5/go.mod h1:pprOEPIfldk/42T2oK7lQ4v4JSDwmV0As9GaiUsvbm0= github.com/go-playground/assert/v2 v2.0.1/go.mod h1:VDjEfimB/XKnb+ZQfWdccd7VUvScMdVu0Titje2rxJ4= github.com/go-playground/locales v0.13.0/go.mod h1:taPMhCMXrRLJO55olJkUXHZBHCxTMfnGwq/HNwmWNS8= github.com/go-playground/universal-translator v0.17.0/go.mod h1:UkSxE5sNxxRwHyU+Scu5vgOQjsIJAF8j9muTVoKLVtA= @@ -450,8 +453,8 @@ github.com/gobwas/httphead v0.0.0-20180130184737-2c6c146eadee/go.mod h1:L0fX3K22 github.com/gobwas/pool v0.2.0/go.mod h1:q8bcK0KcYlCgd9e7WYLm9LpyS+YeLd8JVDW6WezmKEw= github.com/gobwas/ws v1.0.2/go.mod h1:szmBTxLgaFppYjEmNtny/v3w89xOydFnnZMcgRRu/EM= github.com/godbus/dbus/v5 v5.0.4/go.mod h1:xhWf0FNVPg57R7Z0UbKHbJfkEywrmjJnf7w5xrFpKfA= -github.com/gofrs/flock v0.8.0 h1:MSdYClljsF3PbENUUEx85nkWfJSGfzYI9yEBZOJz6CY= -github.com/gofrs/flock v0.8.0/go.mod h1:F1TvTiK9OcQqauNUHlbJvyl9Qa1QvF/gOUDKA14jxHU= +github.com/gofrs/flock v0.8.1 h1:+gYjHKf32LDeiEEFhQaotPbLuUXjY5ZqxKgXy7n59aw= +github.com/gofrs/flock v0.8.1/go.mod h1:F1TvTiK9OcQqauNUHlbJvyl9Qa1QvF/gOUDKA14jxHU= github.com/gogo/protobuf v1.1.1/go.mod h1:r8qH/GZQm5c6nD/R0oafs1akxWv10x8SbQlK7atdtwQ= github.com/gogo/protobuf v1.2.1/go.mod h1:hp+jE20tsWTFYpLwKvXlhS1hjn+gTNwPg2I6zVXpSg4= github.com/gogo/protobuf v1.3.0/go.mod h1:SlYgWuQ5SjCEi6WLHjHCa1yvBfUnHcTbrrZtXPKa29o= @@ -507,8 +510,8 @@ github.com/golangci/go-misc v0.0.0-20180628070357-927a3d87b613 h1:9kfjN3AdxcbsZB github.com/golangci/go-misc v0.0.0-20180628070357-927a3d87b613/go.mod h1:SyvUF2NxV+sN8upjjeVYr5W7tyxaT1JVtvhKhOn2ii8= github.com/golangci/gofmt v0.0.0-20190930125516-244bba706f1a h1:iR3fYXUjHCR97qWS8ch1y9zPNsgXThGwjKPrYfqMPks= github.com/golangci/gofmt v0.0.0-20190930125516-244bba706f1a/go.mod h1:9qCChq59u/eW8im404Q2WWTrnBUQKjpNYKMbU4M7EFU= -github.com/golangci/golangci-lint v1.41.1 h1:KH28pTSqRu6DTXIAANl1sPXNCmqg4VEH21z6G9Wj4SM= -github.com/golangci/golangci-lint v1.41.1/go.mod h1:LPtcY3aAAU8wydHrKpnanx9Og8K/cblZSyGmI5CJZUk= +github.com/golangci/golangci-lint v1.42.1 h1:nC4WyrbdnNdohDVUoNKjy/4N4FTM1gCFaVeXecy6vzM= +github.com/golangci/golangci-lint v1.42.1/go.mod h1:MuInrVlgg2jq4do6XI1jbkErbVHVbwdrLLtGv6p2wPI= github.com/golangci/lint-1 v0.0.0-20191013205115-297bf364a8e0 h1:MfyDlzVjl1hoaPzPD4Gpb/QgoRfSBR0jdhwGyAWwMSA= github.com/golangci/lint-1 v0.0.0-20191013205115-297bf364a8e0/go.mod h1:66R6K6P6VWk9I95jvqGxkqJxVWGFy9XlDwLwVz1RCFg= github.com/golangci/maligned v0.0.0-20180506175553-b1d89398deca h1:kNY3/svz5T29MYHubXix4aDDuE3RWHkPvopM/EDv/MA= @@ -800,8 +803,8 @@ github.com/kyoh86/exportloopref v0.1.8 h1:5Ry/at+eFdkX9Vsdw3qU4YkvGtzuVfzT4X7S77 github.com/kyoh86/exportloopref v0.1.8/go.mod h1:1tUcJeiioIs7VWe5gcOObrux3lb66+sBqGZrRkMwPgg= github.com/kyokomi/emoji/v2 v2.2.8 h1:jcofPxjHWEkJtkIbcLHvZhxKgCPl6C7MyjTrD4KDqUE= github.com/kyokomi/emoji/v2 v2.2.8/go.mod h1:JUcn42DTdsXJo1SWanHh4HKDEyPaR5CqkmoirZZP9qE= -github.com/ldez/gomoddirectives v0.2.1 h1:9pAcW9KRZW7HQjFwbozNvFMcNVwdCBufU7os5QUwLIY= -github.com/ldez/gomoddirectives v0.2.1/go.mod h1:sGicqkRgBOg//JfpXwkB9Hj0X5RyJ7mlACM5B9f6Me4= +github.com/ldez/gomoddirectives v0.2.2 h1:p9/sXuNFArS2RLc+UpYZSI4KQwGMEDWC/LbtF5OPFVg= +github.com/ldez/gomoddirectives v0.2.2/go.mod h1:cpgBogWITnCfRq2qGoDkKMEVSaarhdBr6g8G04uz6d0= github.com/ldez/tagliatelle v0.2.0 h1:693V8Bf1NdShJ8eu/s84QySA0J2VWBanVBa2WwXD/Wk= github.com/ldez/tagliatelle v0.2.0/go.mod h1:8s6WJQwEYHbKZDsp/LjArytKOG8qaMrKQQ3mFukHs88= github.com/leodido/go-urn v1.2.0/go.mod h1:+8+nEpDfqqsY+g338gtMEUOtuK+4dEMhiQEgxpxOKII= @@ -855,8 +858,8 @@ github.com/mbilski/exhaustivestruct v1.2.0 h1:wCBmUnSYufAHO6J4AVWY6ff+oxWxsVFrwg github.com/mbilski/exhaustivestruct v1.2.0/go.mod h1:OeTBVxQWoEmB2J2JCHmXWPJ0aksxSUOUy+nvtVEfzXc= github.com/mgechev/dots v0.0.0-20190921121421-c36f7dcfbb81 h1:QASJXOGm2RZ5Ardbc86qNFvby9AqkLDibfChMtAg5QM= github.com/mgechev/dots v0.0.0-20190921121421-c36f7dcfbb81/go.mod h1:KQ7+USdGKfpPjXk4Ga+5XxQM4Lm4e3gAogrreFAYpOg= -github.com/mgechev/revive v1.0.7 h1:5kEWTY/W5a0Eiqnkn2BAWsRZpxbs1ft15PsyNC7Rml8= -github.com/mgechev/revive v1.0.7/go.mod h1:vuE5ox/4L/HDd63MCcCk3H6wTLQ6XXezRphJ8cJJOxY= +github.com/mgechev/revive v1.1.1 h1:mkXNHP14Y6tfq+ocnQaiKEtgJDM41yaoyQq4qn6TD/4= +github.com/mgechev/revive v1.1.1/go.mod h1:PKqk4L74K6wVNwY2b6fr+9Qqr/3hIsHVfZCJdbvozrY= github.com/mgutz/ansi v0.0.0-20170206155736-9520e82c474b h1:j7+1HpAFS1zy5+Q4qx1fWh90gTKwiN4QCGoY9TWyyO4= github.com/mgutz/ansi v0.0.0-20170206155736-9520e82c474b/go.mod h1:01TrycV0kFyexm33Z7vhZRXopbI8J3TDReVlkTgMUxE= github.com/miekg/dns v1.0.14/go.mod h1:W1PPwlIAgtquWBMBEV9nkV9Cazfe8ScdGz/Lj7v3Nrg= @@ -896,7 +899,7 @@ github.com/mohae/deepcopy v0.0.0-20170929034955-c48cc78d4826/go.mod h1:TaXosZuwd github.com/moricho/tparallel v0.2.1 h1:95FytivzT6rYzdJLdtfn6m1bfFJylOJK41+lgv/EHf4= github.com/moricho/tparallel v0.2.1/go.mod h1:fXEIZxG2vdfl0ZF8b42f5a78EhjjD5mX8qUplsoSU4k= github.com/mozilla/scribe v0.0.0-20180711195314-fb71baf557c1/go.mod h1:FIczTrinKo8VaLxe6PWTPEXRXDIHz2QAwiaBaP5/4a8= -github.com/mozilla/tls-observatory v0.0.0-20210209181001-cf43108d6880/go.mod h1:FUqVoUPHSEdDR0MnFM3Dh8AU0pZHLXUD127SAJGER/s= +github.com/mozilla/tls-observatory v0.0.0-20210609171429-7bc42856d2e5/go.mod h1:FUqVoUPHSEdDR0MnFM3Dh8AU0pZHLXUD127SAJGER/s= github.com/mwitkow/go-conntrack v0.0.0-20161129095857-cc309e4a2223/go.mod h1:qRWi+5nqEBWmkhHvq77mSJWrCKwh8bxhgT7d/eI7P4U= github.com/mwitkow/go-proto-validators v0.0.0-20180403085117-0950a7990007/go.mod h1:m2XC9Qq0AlmmVksL6FktJCdTYyLk7V3fKyp0sl1yWQo= github.com/mwitkow/go-proto-validators v0.2.0/go.mod h1:ZfA1hW+UH/2ZHOWvQ3HnQaU0DtnpXu850MZiy+YUgcc= @@ -905,8 +908,8 @@ github.com/nakabonne/nestif v0.3.0/go.mod h1:dI314BppzXjJ4HsCnbo7XzrJHPszZsjnk5w github.com/nbutton23/zxcvbn-go v0.0.0-20210217022336-fa2cb2858354 h1:4kuARK6Y6FxaNu/BnU2OAaLF86eTVhP2hjTB6iMvItA= github.com/nbutton23/zxcvbn-go v0.0.0-20210217022336-fa2cb2858354/go.mod h1:KSVJerMDfblTH7p5MZaTt+8zaT2iEk3AkVb9PQdZuE8= github.com/niemeyer/pretty v0.0.0-20200227124842-a10e7caefd8e/go.mod h1:zD1mROLANZcx1PVRCS0qkT7pwLkGfwJo4zjcN/Tysno= -github.com/nishanths/exhaustive v0.1.0 h1:kVlMw8h2LHPMGUVqUj6230oQjjTMFjwcZrnkhXzFfl8= -github.com/nishanths/exhaustive v0.1.0/go.mod h1:S1j9110vxV1ECdCudXRkeMnFQ/DQk9ajLT0Uf2MYZQQ= +github.com/nishanths/exhaustive v0.2.3 h1:+ANTMqRNrqwInnP9aszg/0jDo+zbXa4x66U19Bx/oTk= +github.com/nishanths/exhaustive v0.2.3/go.mod h1:bhIX678Nx8inLM9PbpvK1yv6oGtoP8BfaIeMzgBNKvc= github.com/nishanths/predeclared v0.0.0-20190419143655-18a43bb90ffc/go.mod h1:62PewwiQTlm/7Rj+cxVYqZvDIUc+JjZq6GHAC1fsObQ= github.com/nishanths/predeclared v0.2.1 h1:1TXtjmy4f3YCFjTxRd8zcFHOmoUir+gp0ESzjFzG2sw= github.com/nishanths/predeclared v0.2.1/go.mod h1:HvkGJcA3naj4lOwnFXFDkFxVtSqQMB9sbB1usJ+xjQE= @@ -924,13 +927,14 @@ github.com/olekukonko/tablewriter v0.0.5/go.mod h1:hPp6KlRPjbx+hW8ykQs1w3UBbZlj6 github.com/onsi/ginkgo v1.6.0/go.mod h1:lLunBs/Ym6LB5Z9jYTR76FiuTmxDTDusOGeTQH+WWjE= github.com/onsi/ginkgo v1.10.3/go.mod h1:lLunBs/Ym6LB5Z9jYTR76FiuTmxDTDusOGeTQH+WWjE= github.com/onsi/ginkgo v1.12.1/go.mod h1:zj2OWP4+oCPe1qIXoGWkgMRwljMUYCdkwsT2108oapk= -github.com/onsi/ginkgo v1.16.1 h1:foqVmeWDD6yYpK+Yz3fHyNIxFYNxswxqNFjSKe+vI54= -github.com/onsi/ginkgo v1.16.1/go.mod h1:CObGmKUOKaSC0RjmoAK7tKyn4Azo5P2IWuoMnvwxz1E= +github.com/onsi/ginkgo v1.16.2/go.mod h1:CObGmKUOKaSC0RjmoAK7tKyn4Azo5P2IWuoMnvwxz1E= +github.com/onsi/ginkgo v1.16.4 h1:29JGrr5oVBm5ulCWet69zQkzWipVXIol6ygQUe/EzNc= +github.com/onsi/ginkgo v1.16.4/go.mod h1:dX+/inL/fNMqNlz0e9LfyB9TswhZpCVdJM/Z6Vvnwo0= github.com/onsi/gomega v1.5.0/go.mod h1:ex+gbHU/CVuBBDIJjb2X0qEXbFg53c61hWP/1CpauHY= github.com/onsi/gomega v1.7.1/go.mod h1:XdKZgCCFLUoM/7CFJVPcG8C1xQ1AJ0vpAezJrB7JYyY= github.com/onsi/gomega v1.10.1/go.mod h1:iN09h71vgCQne3DLsj+A5owkum+a2tYe+TOCB1ybHNo= -github.com/onsi/gomega v1.11.0 h1:+CqWgvj0OZycCaqclBD1pxKHAU+tOkHmQIWvDHq2aug= -github.com/onsi/gomega v1.11.0/go.mod h1:azGKhqFUon9Vuj0YmTfLSmx0FUwqXYSTl5re8lQLTUg= +github.com/onsi/gomega v1.13.0 h1:7lLHu94wT9Ij0o6EWWclhu0aOh32VxhkwEJvzuWPeak= +github.com/onsi/gomega v1.13.0/go.mod h1:lRk9szgn8TxENtWd0Tp4c3wjlRfMTMH27I+3Je41yGY= github.com/op/go-logging v0.0.0-20160315200505-970db520ece7 h1:lDH9UUVJtmYCjyT0CI4q8xvlXPxeZ0gYCVvWbmPlp88= github.com/op/go-logging v0.0.0-20160315200505-970db520ece7/go.mod h1:HzydrMdWErDVzsI23lYNej1Htcns9BCg93Dk0bBINWk= github.com/opentracing/opentracing-go v1.1.0/go.mod h1:UkNAQd3GIcIGf0SeVgPpRdFStlNbqXla1AfSYxPUl2o= @@ -953,8 +957,8 @@ github.com/pkg/sftp v1.10.1/go.mod h1:lYOWFsE0bwd1+KfKJaKeuokY15vzFx25BLbzYYoAxZ github.com/pmezard/go-difflib v0.0.0-20151028094244-d8ed2627bdf0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= -github.com/polyfloyd/go-errorlint v0.0.0-20210510181950-ab96adb96fea h1:Sk6Xawg57ZkjXmFYD1xCHSKN6FtYM+km51MM7Lveyyc= -github.com/polyfloyd/go-errorlint v0.0.0-20210510181950-ab96adb96fea/go.mod h1:wi9BfjxjF/bwiZ701TzmfKu6UKC357IOAtNr0Td0Lvw= +github.com/polyfloyd/go-errorlint v0.0.0-20210722154253-910bb7978349 h1:Kq/3kL0k033ds3tyez5lFPrfQ74fNJ+OqCclRipubwA= +github.com/polyfloyd/go-errorlint v0.0.0-20210722154253-910bb7978349/go.mod h1:wi9BfjxjF/bwiZ701TzmfKu6UKC357IOAtNr0Td0Lvw= github.com/posener/complete v1.1.1/go.mod h1:em0nMJCgc9GFtwrmVmEMR/ZL6WyhyjMBndrE9hABlRI= github.com/posener/complete v1.2.1/go.mod h1:6gapUrK/U1TAN7ciCoNRIdVC5sbdBTUh1DKN0g6uH7E= github.com/prometheus/client_golang v0.9.1/go.mod h1:7SWBe2y4D6OKWSNQJUaRYU/AaXPKyh/dDVn+NZz0KFw= @@ -975,8 +979,9 @@ github.com/prometheus/common v0.10.0/go.mod h1:Tlit/dnDKsSWFlCLTWaA1cyBgKHSMdTB8 github.com/prometheus/procfs v0.0.0-20181005140218-185b4288413d/go.mod h1:c3At6R/oaqEKCNdg8wHV1ftS6bRYblBhIjjI8uT2IGk= github.com/prometheus/procfs v0.0.0-20190507164030-5867b95ac084/go.mod h1:TjEm7ze935MbeOT/UhFTIMYKhuLP4wbCsTZCD3I8kEA= github.com/prometheus/procfs v0.0.2/go.mod h1:TjEm7ze935MbeOT/UhFTIMYKhuLP4wbCsTZCD3I8kEA= -github.com/prometheus/procfs v0.1.3 h1:F0+tqvhOksq22sc6iCHF5WGlWjdwj92p0udFh1VFBS8= github.com/prometheus/procfs v0.1.3/go.mod h1:lV6e/gmhEcM9IjHGsFOCxxuZ+z1YqCvr4OA4YeYWdaU= +github.com/prometheus/procfs v0.6.0 h1:mxy4L2jP6qMonqmq+aTtOx1ifVWUgG/TAmntgbh3xv4= +github.com/prometheus/procfs v0.6.0/go.mod h1:cz+aTbrPOrUb4q7XlbU9ygM+/jj0fzG6c1xBZuNvfVA= github.com/prometheus/tsdb v0.7.1/go.mod h1:qhTCs0VvXwvX/y3TZrWD7rabWM+ijKTux40TwIPHuXU= github.com/psampaz/go-mod-outdated v0.8.0 h1:mSqlqz9BDpfbuxs0IWoRxqbyz7GfWQHLsDH47n89jCw= github.com/psampaz/go-mod-outdated v0.8.0/go.mod h1:o/o7wRSQWiSjKw8afZ7hq58J7IucGcSMbLWMG3veaQs= @@ -1005,8 +1010,8 @@ github.com/russross/blackfriday v1.5.2 h1:HyvC0ARfnZBqnXwABFeSZHpKvJHJJfPz81GNue github.com/russross/blackfriday v1.5.2/go.mod h1:JO/DiYxRf+HjHt06OyowR9PTA263kcR/rfWxYHBV53g= github.com/russross/blackfriday/v2 v2.0.1 h1:lPqVAte+HuHNfhJ/0LC98ESWRz8afy9tM/0RK8m9o+Q= github.com/russross/blackfriday/v2 v2.0.1/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM= -github.com/ryancurrah/gomodguard v1.2.2 h1:ZJQeYHZ2kaJpojoQBaGqpsn5g7GMcePY36uUGW1umbs= -github.com/ryancurrah/gomodguard v1.2.2/go.mod h1:tpI+C/nzvfUR3bF28b5QHpTn/jM/zlGniI++6ZlIWeE= +github.com/ryancurrah/gomodguard v1.2.3 h1:ww2fsjqocGCAFamzvv/b8IsRduuHHeK2MHTcTxZTQX8= +github.com/ryancurrah/gomodguard v1.2.3/go.mod h1:rYbA/4Tg5c54mV1sv4sQTP5WOPBcoLtnBZ7/TEhXAbg= github.com/ryanrolds/sqlclosecheck v0.3.0 h1:AZx+Bixh8zdUBxUA1NxbxVAS78vTPq4rCb8OUZI9xFw= github.com/ryanrolds/sqlclosecheck v0.3.0/go.mod h1:1gREqxyTGR3lVtpngyFo3hZAgk0KCtEdgEkHwDbigdA= github.com/ryanuber/columnize v0.0.0-20160712163229-9b3edd62028f/go.mod h1:sm1tb6uqfes/u+d4ooFouqFdy9/2g9QGwK3SQygK0Ts= @@ -1015,15 +1020,15 @@ github.com/sanposhiho/wastedassign/v2 v2.0.6/go.mod h1:KyZ0MWTwxxBmfwn33zh3k1dms github.com/sassoftware/go-rpmutils v0.0.0-20190420191620-a8f1baeba37b h1:+gCnWOZV8Z/8jehJ2CdqB47Z3S+SREmQcuXkRFLNsiI= github.com/sassoftware/go-rpmutils v0.0.0-20190420191620-a8f1baeba37b/go.mod h1:am+Fp8Bt506lA3Rk3QCmSqmYmLMnPDhdDUcosQCAx+I= github.com/sean-/seed v0.0.0-20170313163322-e2103e2c3529/go.mod h1:DxrIzT+xaE7yg65j358z/aeFdxmN0P9QXhEzd20vsDc= -github.com/securego/gosec/v2 v2.8.0 h1:iHg9cVmHWf5n6/ijUJ4F10h5bKlNtvXmcWzRw0lxiKE= -github.com/securego/gosec/v2 v2.8.0/go.mod h1:hJZ6NT5TqoY+jmOsaxAV4cXoEdrMRLVaNPnSpUCvCZs= +github.com/securego/gosec/v2 v2.8.1 h1:Tyy/nsH39TYCOkqf5HAgRE+7B5D8sHDwPdXRgFWokh8= +github.com/securego/gosec/v2 v2.8.1/go.mod h1:pUmsq6+VyFEElJMUX+QB3p3LWNHXg1R3xh2ssVJPs8Q= github.com/sergi/go-diff v1.0.0/go.mod h1:0CfEIISq7TuYL3j771MWULgwwjU+GofnZX9QAmXWZgo= github.com/sergi/go-diff v1.1.0/go.mod h1:STckp+ISIX8hZLjrqAeVduY0gWCT9IjLuqbuNXdaHfM= github.com/sergi/go-diff v1.2.0 h1:XU+rvMAioB0UC3q1MFrIQy4Vo5/4VsRDQQXHsEya6xQ= github.com/sergi/go-diff v1.2.0/go.mod h1:STckp+ISIX8hZLjrqAeVduY0gWCT9IjLuqbuNXdaHfM= github.com/shazow/go-diff v0.0.0-20160112020656-b6b7b6733b8c h1:W65qqJCIOVP4jpqPQ0YvHYKwcMEMVWIzWC5iNQQfBTU= github.com/shazow/go-diff v0.0.0-20160112020656-b6b7b6733b8c/go.mod h1:/PevMnwAxekIXwN8qQyfc5gl2NlkB3CQlkizAbOkeBs= -github.com/shirou/gopsutil/v3 v3.21.5/go.mod h1:ghfMypLDrFSWN2c9cDYFLHyynQ+QUht0cv/18ZqVczw= +github.com/shirou/gopsutil/v3 v3.21.7/go.mod h1:RGl11Y7XMTQPmHh8F0ayC6haKNBgH4PXMJuTAcMOlz4= github.com/shopspring/decimal v1.2.0 h1:abSATXmQEYyShuxI4/vyW3tV1MrKAJzCZ/0zLUXYbsQ= github.com/shopspring/decimal v1.2.0/go.mod h1:DKyhrW/HYNuLGql+MJL6WCR6knT2jwCFRcu2hWCYk4o= github.com/shurcooL/go v0.0.0-20180423040247-9e1955d9fb6e/go.mod h1:TDJrrUr11Vxrven61rcy3hJMUqaf/CLWYhHNPmT14Lk= @@ -1063,7 +1068,6 @@ github.com/spf13/cast v1.3.1/go.mod h1:Qx5cxh0v+4UWYiBimWS+eyWzqEqokIECu5etghLkU github.com/spf13/cobra v0.0.3/go.mod h1:1l0Ry5zgKvJasoi3XT1TypsSe7PqH0Sj9dhYf7v3XqQ= github.com/spf13/cobra v0.0.5/go.mod h1:3K3wKZymM7VvHMDS9+Akkh4K60UwM26emMESw8tLCHU= github.com/spf13/cobra v1.1.1/go.mod h1:WnodtKOvamDL/PwE2M4iKs8aMDBZ5Q5klgD3qfVJQMI= -github.com/spf13/cobra v1.1.3/go.mod h1:pGADOWyqRD/YMrPZigI/zbliZ2wVD/23d+is3pSWzOo= github.com/spf13/cobra v1.2.1 h1:+KmjbUw1hriSNMF55oPrkZcb27aECyrj8V2ytv7kWDw= github.com/spf13/cobra v1.2.1/go.mod h1:ExllRjgxM/piMAM+3tAZvg8fsklGAf3tPfi+i8t68Nk= github.com/spf13/jwalterweatherman v1.0.0/go.mod h1:cQK4TGJAtQXfYWX+Ddv3mKDzgVb68N+wFjFa4jdeBTo= @@ -1102,8 +1106,8 @@ github.com/subosito/gotenv v1.2.0 h1:Slr1R9HxAlEKefgq5jn9U+DnETlIUa6HfgEzj0g5d7s github.com/subosito/gotenv v1.2.0/go.mod h1:N0PQaV/YGNqwC0u51sEeR/aUtSLEXKX9iv69rRypqCw= github.com/tdakkota/asciicheck v0.0.0-20200416200610-e657995f937b h1:HxLVTlqcHhFAz3nWUcuvpH7WuOMv8LQoCWmruLfFH2U= github.com/tdakkota/asciicheck v0.0.0-20200416200610-e657995f937b/go.mod h1:yHp0ai0Z9gUljN3o0xMhYJnH/IcvkdTBOX2fmJ93JEM= -github.com/tetafro/godot v1.4.7 h1:zBaoSY4JRVVz33y/qnODsdaKj2yAaMr91HCbqHCifVc= -github.com/tetafro/godot v1.4.7/go.mod h1:LR3CJpxDVGlYOWn3ZZg1PgNZdTUvzsZWu8xaEohUpn8= +github.com/tetafro/godot v1.4.9 h1:wsNd0RuUxISqqudFqchsSsMqsM188DoZVPBeKl87tP0= +github.com/tetafro/godot v1.4.9/go.mod h1:LR3CJpxDVGlYOWn3ZZg1PgNZdTUvzsZWu8xaEohUpn8= github.com/timakin/bodyclose v0.0.0-20200424151742-cb6215831a94 h1:ig99OeTyDwQWhPe2iw9lwfQVF1KB3Q4fpP3X7/2VBG8= github.com/timakin/bodyclose v0.0.0-20200424151742-cb6215831a94/go.mod h1:Qimiffbc6q9tBWlVV6x0P9sat/ao1xEkREYPPj9hphk= github.com/tj/assert v0.0.0-20171129193455-018094318fb0/go.mod h1:mZ9/Rh9oLWpLLDRpvE+3b7gP/C2YyLFYxNmcLnPTMe0= @@ -1113,13 +1117,13 @@ github.com/tj/go-buffer v1.1.0/go.mod h1:iyiJpfFcR2B9sXu7KvjbT9fpM4mOelRSDTbntVj github.com/tj/go-elastic v0.0.0-20171221160941-36157cbbebc2/go.mod h1:WjeM0Oo1eNAjXGDx2yma7uG2XoyRZTq1uv3M/o7imD0= github.com/tj/go-kinesis v0.0.0-20171128231115-08b17f58cb1b/go.mod h1:/yhzCV0xPfx6jb1bBgRFjl5lytqVqZXEaeqWP8lTEao= github.com/tj/go-spin v1.1.0/go.mod h1:Mg1mzmePZm4dva8Qz60H2lHwmJ2loum4VIrLgVnKwh4= -github.com/tklauser/go-sysconf v0.3.4/go.mod h1:Cl2c8ZRWfHD5IrfHo9VN+FX9kCFjIOyVklgXycLB6ek= -github.com/tklauser/numcpus v0.2.1/go.mod h1:9aU+wOc6WjUIZEwWMP62PL/41d65P+iks1gBkr4QyP8= +github.com/tklauser/go-sysconf v0.3.7/go.mod h1:JZIdXh4RmBvZDBZ41ld2bGxRV3n4daiiqA3skYhAoQ4= +github.com/tklauser/numcpus v0.2.3/go.mod h1:vpEPS/JC+oZGGQ/My/vJnNsvMDQL6PwOqt8dsCw5j+E= github.com/tmc/grpc-websocket-proxy v0.0.0-20170815181823-89b8d40f7ca8/go.mod h1:ncp9v5uamzpCO7NfCPTXjqaC+bZgJeR0sMTm6dMHP7U= github.com/tmc/grpc-websocket-proxy v0.0.0-20190109142713-0ad062ec5ee5/go.mod h1:ncp9v5uamzpCO7NfCPTXjqaC+bZgJeR0sMTm6dMHP7U= github.com/tmc/grpc-websocket-proxy v0.0.0-20200427203606-3cfed13b9966/go.mod h1:ncp9v5uamzpCO7NfCPTXjqaC+bZgJeR0sMTm6dMHP7U= -github.com/tomarrell/wrapcheck/v2 v2.1.0 h1:LTzwrYlgBUwi9JldazhbJN84fN9nS2UNGrZIo2syqxE= -github.com/tomarrell/wrapcheck/v2 v2.1.0/go.mod h1:crK5eI4RGSUrb9duDTQ5GqcukbKZvi85vX6nbhsBAeI= +github.com/tomarrell/wrapcheck/v2 v2.3.0 h1:i3DNjtyyL1xwaBQOsPPk8LAcpayWfQv2rxNi9b/eEx4= +github.com/tomarrell/wrapcheck/v2 v2.3.0/go.mod h1:aF5rnkdtqNWP/gC7vPUO5pKsB0Oac2FDTQP4F+dpZMU= github.com/tomasen/realip v0.0.0-20180522021738-f0c99a92ddce/go.mod h1:o8v6yHRoik09Xen7gje4m9ERNah1d1PPsVq1VEx9vE4= github.com/tommy-muehle/go-mnd/v2 v2.4.0 h1:1t0f8Uiaq+fqKteUR4N9Umr6E99R+lDnLnq7PwX2PPE= github.com/tommy-muehle/go-mnd/v2 v2.4.0/go.mod h1:WsUAkMJMYww6l/ufffCD3m+P7LEvr8TnZn9lwVDlgzw= @@ -1145,8 +1149,8 @@ github.com/urfave/cli v1.22.1 h1:+mkCCcOFKPnCmVYVcURKps1Xe+3zP90gSYGNfRkjoIY= github.com/urfave/cli v1.22.1/go.mod h1:Gos4lmkARVdJ6EkW0WaNv/tZAAMe9V7XWyB60NtXRu0= github.com/urfave/cli/v2 v2.3.0 h1:qph92Y649prgesehzOrQjdWyxFOp/QVM+6imKHad91M= github.com/urfave/cli/v2 v2.3.0/go.mod h1:LJmUH05zAU44vOAcrfzZQKsZbVcdbOG8rtL3/XcUArI= -github.com/uudashr/gocognit v1.0.1 h1:MoG2fZ0b/Eo7NXoIwCVFLG5JED3qgQz5/NEE+rOsjPs= -github.com/uudashr/gocognit v1.0.1/go.mod h1:j44Ayx2KW4+oB6SWMv8KsmHzZrOInQav7D3cQMJ5JUM= +github.com/uudashr/gocognit v1.0.5 h1:rrSex7oHr3/pPLQ0xoWq108XMU8s678FJcQ+aSfOHa4= +github.com/uudashr/gocognit v1.0.5/go.mod h1:wgYz0mitoKOTysqxTDMOUXg+Jb5SvtihkfmugIZYpEA= github.com/valyala/bytebufferpool v1.0.0/go.mod h1:6bBcMArwyJ5K/AmCkWv1jt77kVWyCJ6HpOuEn7z0Csc= github.com/valyala/fasthttp v1.16.0/go.mod h1:YOKImeEosDdBPnxc0gy7INqi3m1zK6A+xl6TwOBhHCA= github.com/valyala/quicktemplate v1.6.3/go.mod h1:fwPzK2fHuYEODzJ9pkw0ipCPNHZ2tD5KW4lOuSdPKzY= @@ -1336,7 +1340,6 @@ golang.org/x/net v0.0.0-20200822124328-c89045814202/go.mod h1:/O7V0waA8r7cgGh81R golang.org/x/net v0.0.0-20201021035429-f5854403a974/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU= golang.org/x/net v0.0.0-20201031054903-ff519b6c9102/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU= golang.org/x/net v0.0.0-20201110031124-69a78807bb2b/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU= -golang.org/x/net v0.0.0-20201202161906-c7110b5ffcbb/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU= golang.org/x/net v0.0.0-20201209123823-ac852fbbde11/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg= golang.org/x/net v0.0.0-20201224014010-6772e930b67b/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg= golang.org/x/net v0.0.0-20210119194325-5f4716e94777/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg= @@ -1345,6 +1348,7 @@ golang.org/x/net v0.0.0-20210316092652-d523dce5a7f4/go.mod h1:RBQZq4jEuRlivfhVLd golang.org/x/net v0.0.0-20210326060303-6b1517762897/go.mod h1:uSPa2vr4CLtc/ILN5odXGNXS6mhrKVzTaCXzk9m6W3k= golang.org/x/net v0.0.0-20210405180319-a5a99cb37ef4/go.mod h1:p54w0d4576C0XHj96bSt6lcn1PtDYWL6XObtHCRCNQM= golang.org/x/net v0.0.0-20210410081132-afb366fc7cd1/go.mod h1:9tjilg8BloeKEkVJvy7fQ90B1CfIiPueXVOjqfkSzI8= +golang.org/x/net v0.0.0-20210428140749-89ef3d95e781/go.mod h1:OJAsFXCWl8Ukc7SiCT/9KSuxbyM7479/AVlXFRxuMCk= golang.org/x/net v0.0.0-20210503060351-7fd8e65b6420/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y= golang.org/x/net v0.0.0-20210614182718-04defd469f4e/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y= golang.org/x/net v0.0.0-20210726213435-c6fcb2dbf985/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y= @@ -1445,7 +1449,6 @@ golang.org/x/sys v0.0.0-20210104204734-6f8348627aad/go.mod h1:h1NjWce9XRLGQEsW7w golang.org/x/sys v0.0.0-20210112080510-489259a85091/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20210119212857-b64e53b001e4/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20210124154548-22da62e12c0c/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20210217105451-b926d437f341/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20210220050731-9a76102bfb43/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20210223095934-7937bea0104d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20210305230114-8fe3ee5dd75b/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= @@ -1571,7 +1574,6 @@ golang.org/x/tools v0.0.0-20200831203904-5a2aa26beb65/go.mod h1:Cj7w3i3Rnn0Xh82u golang.org/x/tools v0.0.0-20200904185747-39188db58858/go.mod h1:Cj7w3i3Rnn0Xh82ur9kSqwfTHTeVxaDqrfMjpcNT6bE= golang.org/x/tools v0.0.0-20201001104356-43ebab892c4c/go.mod h1:z6u4i615ZeAfBE4XtMziQW1fSVJXACjjbWkB/mvPzlU= golang.org/x/tools v0.0.0-20201002184944-ecd9fd270d5d/go.mod h1:z6u4i615ZeAfBE4XtMziQW1fSVJXACjjbWkB/mvPzlU= -golang.org/x/tools v0.0.0-20201011145850-ed2f50202694/go.mod h1:z6u4i615ZeAfBE4XtMziQW1fSVJXACjjbWkB/mvPzlU= golang.org/x/tools v0.0.0-20201023174141-c8cfbd0f21e6/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= golang.org/x/tools v0.0.0-20201028025901-8cd080b735b3/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= golang.org/x/tools v0.0.0-20201028111035-eafbe7b904eb/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= @@ -1813,8 +1815,8 @@ honnef.co/go/tools v0.0.0-20190523083050-ea95bdfd59fc/go.mod h1:rf3lG4BRIbNafJWh honnef.co/go/tools v0.0.1-2019.2.3/go.mod h1:a3bituU0lyd329TUQxRnasdCoJDkEUEAqEt0JzvZhAg= honnef.co/go/tools v0.0.1-2020.1.3/go.mod h1:X/FiERA/W4tHapMX5mGpAtMSVEeEUOyHaw9vFzvIQ3k= honnef.co/go/tools v0.0.1-2020.1.4/go.mod h1:X/FiERA/W4tHapMX5mGpAtMSVEeEUOyHaw9vFzvIQ3k= -honnef.co/go/tools v0.2.0 h1:ws8AfbgTX3oIczLPNPCu5166oBg9ST2vNs0rcht+mDE= -honnef.co/go/tools v0.2.0/go.mod h1:lPVVZ2BS5TfnjLyizF7o7hv7j9/L+8cZY2hLyjP9cGY= +honnef.co/go/tools v0.2.1 h1:/EPr//+UMMXwMTkXvCCoaJDq8cpjMO80Ou+L4PDo2mY= +honnef.co/go/tools v0.2.1/go.mod h1:lPVVZ2BS5TfnjLyizF7o7hv7j9/L+8cZY2hLyjP9cGY= mvdan.cc/gofumpt v0.1.1 h1:bi/1aS/5W00E2ny5q65w9SnKpWEF/UIOqDYBILpo9rA= mvdan.cc/gofumpt v0.1.1/go.mod h1:yXG1r1WqZVKWbVRtBWKWX9+CxGYfA51nSomhM0woR48= mvdan.cc/interfacer v0.0.0-20180901003855-c20040233aed h1:WX1yoOaKQfddO/mLzdV4wptyWgoH/6hwLs7QHTixo0I= From c5a49d016e962642bea0cfc897108331a6b6b54d Mon Sep 17 00:00:00 2001 From: Jonathan Thurman Date: Tue, 21 Sep 2021 11:09:33 -0700 Subject: [PATCH 4/5] chore(deps): Update github.com/newrelic/newrelic-client-go v0.63.0 --- go.mod | 2 +- go.sum | 8 ++++---- newrelic/resource_newrelic_entity_tags.go | 11 ++++++----- newrelic/resource_newrelic_entity_tags_test.go | 6 +++--- newrelic/resource_newrelic_one_dashboard.go | 8 ++++---- newrelic/resource_newrelic_one_dashboard_raw.go | 8 ++++---- newrelic/resource_newrelic_one_dashboard_raw_test.go | 4 ++-- newrelic/resource_newrelic_one_dashboard_test.go | 6 +++--- newrelic/structures_newrelic_one_dashboard.go | 9 +++++---- newrelic/structures_newrelic_one_dashboard_raw.go | 3 ++- 10 files changed, 34 insertions(+), 31 deletions(-) diff --git a/go.mod b/go.mod index 971b7f93d..6ee3060b4 100644 --- a/go.mod +++ b/go.mod @@ -10,7 +10,7 @@ require ( github.com/mitchellh/go-homedir v1.1.0 github.com/newrelic/go-agent/v3 v3.15.0 github.com/newrelic/go-insights v1.0.3 - github.com/newrelic/newrelic-client-go v0.62.1 + github.com/newrelic/newrelic-client-go v0.63.0 github.com/stretchr/testify v1.7.0 golang.org/x/tools v0.0.0-20201028111035-eafbe7b904eb // indirect google.golang.org/api v0.34.0 // indirect diff --git a/go.sum b/go.sum index f1dac87fc..5fd8eb7d9 100644 --- a/go.sum +++ b/go.sum @@ -376,8 +376,8 @@ github.com/mitchellh/go-wordwrap v0.0.0-20150314170334-ad45545899c7/go.mod h1:ZX github.com/mitchellh/go-wordwrap v1.0.0 h1:6GlHJ/LTGMrIJbwgdqdl2eEH8o+Exx/0m8ir9Gns0u4= github.com/mitchellh/go-wordwrap v1.0.0/go.mod h1:ZXFpozHsX6DPmq2I0TCekCxypsnAUbP2oI0UX1GXzOo= github.com/mitchellh/mapstructure v1.1.2/go.mod h1:FVVH3fgwuzCH5S8UJGiWEs2h04kUh9fWfEaFds41c1Y= -github.com/mitchellh/mapstructure v1.4.1 h1:CpVNEelQCZBooIPDn+AR3NpivK/TIKU8bDxdASFVQag= -github.com/mitchellh/mapstructure v1.4.1/go.mod h1:bFUtVrKA4DC2yAKiSyO/QUcy7e+RRV2QTWOzhPopBRo= +github.com/mitchellh/mapstructure v1.4.2 h1:6h7AQ0yhTcIsmFmnAwQls75jp2Gzs4iB8W7pjMO+rqo= +github.com/mitchellh/mapstructure v1.4.2/go.mod h1:bFUtVrKA4DC2yAKiSyO/QUcy7e+RRV2QTWOzhPopBRo= github.com/mitchellh/reflectwalk v1.0.0/go.mod h1:mSTlrgnPZtwu0c4WaC2kGObEpuNDbx0jmZXqmk4esnw= github.com/mitchellh/reflectwalk v1.0.2 h1:G2LzWKi524PWgd3mLHV8Y5k7s6XUvT0Gef6zxSIeXaQ= github.com/mitchellh/reflectwalk v1.0.2/go.mod h1:mSTlrgnPZtwu0c4WaC2kGObEpuNDbx0jmZXqmk4esnw= @@ -388,8 +388,8 @@ github.com/newrelic/go-agent/v3 v3.15.0 h1:XKF81YOkkO5cCEtQmguamOVMVmeWnv7X3+mkR github.com/newrelic/go-agent/v3 v3.15.0/go.mod h1:1A1dssWBwzB7UemzRU6ZVaGDsI+cEn5/bNxI0wiYlIc= github.com/newrelic/go-insights v1.0.3 h1:zSNp1CEZnXktzSIEsbHJk8v6ZihdPFP2WsO/fzau3OQ= github.com/newrelic/go-insights v1.0.3/go.mod h1:A20BoT8TNkqPGX2nS/Z2fYmKl3Cqa3iKZd4whzedCY4= -github.com/newrelic/newrelic-client-go v0.62.1 h1:3EtnALMolln8G2EdDWx2TUYgh8VqAGJmoqFE46rBoeE= -github.com/newrelic/newrelic-client-go v0.62.1/go.mod h1:rJrNRX5HzgCnxJm2Hcn6IXmN1KCP/ppmvwkUbnm2Kto= +github.com/newrelic/newrelic-client-go v0.63.0 h1:FqM9GPLYeSah9m3iU4oe5Obm8Ty/EN+G4XaNlcrqU8o= +github.com/newrelic/newrelic-client-go v0.63.0/go.mod h1:VXjhsfui0rvhM9cVwnKwlidF8NbXlHZvh63ZKi6fImA= github.com/niemeyer/pretty v0.0.0-20200227124842-a10e7caefd8e/go.mod h1:zD1mROLANZcx1PVRCS0qkT7pwLkGfwJo4zjcN/Tysno= github.com/nsf/jsondiff v0.0.0-20200515183724-f29ed568f4ce h1:RPclfga2SEJmgMmz2k+Mg7cowZ8yv4Trqw9UsJby758= github.com/nsf/jsondiff v0.0.0-20200515183724-f29ed568f4ce/go.mod h1:uFMI8w+ref4v2r9jz+c9i1IfIttS/OkmLfrk1jne5hs= diff --git a/newrelic/resource_newrelic_entity_tags.go b/newrelic/resource_newrelic_entity_tags.go index 749ce8b11..1aaae3161 100644 --- a/newrelic/resource_newrelic_entity_tags.go +++ b/newrelic/resource_newrelic_entity_tags.go @@ -10,6 +10,7 @@ import ( "github.com/hashicorp/terraform-plugin-sdk/v2/diag" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" + "github.com/newrelic/newrelic-client-go/pkg/common" "github.com/newrelic/newrelic-client-go/pkg/entities" nrErrors "github.com/newrelic/newrelic-client-go/pkg/errors" ) @@ -77,7 +78,7 @@ func resourceNewRelicEntityTagsCreate(ctx context.Context, d *schema.ResourceDat client := providerConfig.NewClient - guid := entities.EntityGUID(d.Get("guid").(string)) + guid := common.EntityGUID(d.Get("guid").(string)) tags := expandEntityTags(d.Get("tag").(*schema.Set).List()) _, err := client.Entities.TaggingAddTagsToEntityWithContext(ctx, guid, tags) @@ -132,7 +133,7 @@ func resourceNewRelicEntityTagsRead(ctx context.Context, d *schema.ResourceData, log.Printf("[INFO] Reading New Relic entity tags for entity guid %s", d.Id()) - t, err := client.Entities.GetTagsForEntity(entities.EntityGUID(d.Id())) + t, err := client.Entities.GetTagsForEntity(common.EntityGUID(d.Id())) if err != nil { if _, ok := err.(*nrErrors.NotFound); ok { @@ -161,13 +162,13 @@ func resourceNewRelicEntityTagsUpdate(ctx context.Context, d *schema.ResourceDat tags := expandEntityTags(d.Get("tag").(*schema.Set).List()) - _, err := client.Entities.TaggingReplaceTagsOnEntityWithContext(ctx, entities.EntityGUID(d.Id()), tags) + _, err := client.Entities.TaggingReplaceTagsOnEntityWithContext(ctx, common.EntityGUID(d.Id()), tags) if err != nil { return diag.FromErr(err) } retryErr := resource.RetryContext(ctx, d.Timeout(schema.TimeoutCreate), func() *resource.RetryError { - t, err := client.Entities.GetTagsForEntity(entities.EntityGUID(d.Id())) + t, err := client.Entities.GetTagsForEntity(common.EntityGUID(d.Id())) if err != nil { return resource.NonRetryableError(fmt.Errorf("error retrieving entity tags for guid %s: %s", d.Id(), err)) } @@ -232,7 +233,7 @@ func resourceNewRelicEntityTagsDelete(ctx context.Context, d *schema.ResourceDat tags := expandEntityTags(d.Get("tag").(*schema.Set).List()) tagKeys := getTagKeys(tags) - _, err := client.Entities.TaggingDeleteTagFromEntityWithContext(ctx, entities.EntityGUID(d.Id()), tagKeys) + _, err := client.Entities.TaggingDeleteTagFromEntityWithContext(ctx, common.EntityGUID(d.Id()), tagKeys) if err != nil { return diag.FromErr(err) } diff --git a/newrelic/resource_newrelic_entity_tags_test.go b/newrelic/resource_newrelic_entity_tags_test.go index af02cd49f..a4575ed7a 100644 --- a/newrelic/resource_newrelic_entity_tags_test.go +++ b/newrelic/resource_newrelic_entity_tags_test.go @@ -9,7 +9,7 @@ import ( "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" "github.com/hashicorp/terraform-plugin-sdk/v2/terraform" - "github.com/newrelic/newrelic-client-go/pkg/entities" + "github.com/newrelic/newrelic-client-go/pkg/common" ) func TestAccNewRelicEntityTags_Basic(t *testing.T) { @@ -51,7 +51,7 @@ func testAccCheckNewRelicEntityTagsDestroy(s *terraform.State) error { continue } - _, err := client.Entities.ListTags(entities.EntityGUID(r.Primary.ID)) + _, err := client.Entities.ListTags(common.EntityGUID(r.Primary.ID)) if err != nil { return fmt.Errorf("entity tags still exist: %s", err) @@ -74,7 +74,7 @@ func testAccCheckNewRelicEntityTagsExist(n string, keysToCheck []string) resourc client := testAccProvider.Meta().(*ProviderConfig).NewClient - t, err := client.Entities.GetTagsForEntity(entities.EntityGUID(rs.Primary.ID)) + t, err := client.Entities.GetTagsForEntity(common.EntityGUID(rs.Primary.ID)) if err != nil { return err } diff --git a/newrelic/resource_newrelic_one_dashboard.go b/newrelic/resource_newrelic_one_dashboard.go index 3c3166bc8..0d65d61fa 100644 --- a/newrelic/resource_newrelic_one_dashboard.go +++ b/newrelic/resource_newrelic_one_dashboard.go @@ -7,7 +7,7 @@ import ( "github.com/hashicorp/terraform-plugin-sdk/v2/diag" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/validation" - "github.com/newrelic/newrelic-client-go/pkg/entities" + "github.com/newrelic/newrelic-client-go/pkg/common" "github.com/newrelic/newrelic-client-go/pkg/errors" ) @@ -415,7 +415,7 @@ func resourceNewRelicOneDashboardRead(ctx context.Context, d *schema.ResourceDat log.Printf("[INFO] Reading New Relic One dashboard %s", d.Id()) - dashboard, err := client.Dashboards.GetDashboardEntityWithContext(ctx, entities.EntityGUID(d.Id())) + dashboard, err := client.Dashboards.GetDashboardEntityWithContext(ctx, common.EntityGUID(d.Id())) if err != nil { if _, ok := err.(*errors.NotFound); ok { d.SetId("") @@ -448,7 +448,7 @@ func resourceNewRelicOneDashboardUpdate(ctx context.Context, d *schema.ResourceD log.Printf("[INFO] Updating New Relic One dashboard '%s' (%s)", dashboard.Name, d.Id()) - result, err := client.Dashboards.DashboardUpdateWithContext(ctx, *dashboard, entities.EntityGUID(d.Id())) + result, err := client.Dashboards.DashboardUpdateWithContext(ctx, *dashboard, common.EntityGUID(d.Id())) if err != nil { return diag.FromErr(err) } @@ -463,7 +463,7 @@ func resourceNewRelicOneDashboardDelete(ctx context.Context, d *schema.ResourceD log.Printf("[INFO] Deleting New Relic One dashboard %v", d.Id()) - if _, err := client.Dashboards.DashboardDeleteWithContext(ctx, entities.EntityGUID(d.Id())); err != nil { + if _, err := client.Dashboards.DashboardDeleteWithContext(ctx, common.EntityGUID(d.Id())); err != nil { if _, ok := err.(*errors.NotFound); ok { return nil } diff --git a/newrelic/resource_newrelic_one_dashboard_raw.go b/newrelic/resource_newrelic_one_dashboard_raw.go index 2858d911c..d59082df6 100644 --- a/newrelic/resource_newrelic_one_dashboard_raw.go +++ b/newrelic/resource_newrelic_one_dashboard_raw.go @@ -8,7 +8,7 @@ import ( "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/structure" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/validation" - "github.com/newrelic/newrelic-client-go/pkg/entities" + "github.com/newrelic/newrelic-client-go/pkg/common" "github.com/newrelic/newrelic-client-go/pkg/errors" ) @@ -210,7 +210,7 @@ func resourceNewRelicOneDashboardRawRead(ctx context.Context, d *schema.Resource log.Printf("[INFO] Reading New Relic One dashboard %s", d.Id()) - dashboard, err := client.Dashboards.GetDashboardEntityWithContext(ctx, entities.EntityGUID(d.Id())) + dashboard, err := client.Dashboards.GetDashboardEntityWithContext(ctx, common.EntityGUID(d.Id())) if err != nil { if _, ok := err.(*errors.NotFound); ok { d.SetId("") @@ -243,7 +243,7 @@ func resourceNewRelicOneDashboardRawUpdate(ctx context.Context, d *schema.Resour log.Printf("[INFO] Updating New Relic One dashboard '%s' (%s)", dashboard.Name, d.Id()) - result, err := client.Dashboards.DashboardUpdateWithContext(ctx, *dashboard, entities.EntityGUID(d.Id())) + result, err := client.Dashboards.DashboardUpdateWithContext(ctx, *dashboard, common.EntityGUID(d.Id())) if err != nil { return diag.FromErr(err) } @@ -258,7 +258,7 @@ func resourceNewRelicOneDashboardRawDelete(ctx context.Context, d *schema.Resour log.Printf("[INFO] Deleting New Relic One dashboard %v", d.Id()) - if _, err := client.Dashboards.DashboardDeleteWithContext(ctx, entities.EntityGUID(d.Id())); err != nil { + if _, err := client.Dashboards.DashboardDeleteWithContext(ctx, common.EntityGUID(d.Id())); err != nil { if _, ok := err.(*errors.NotFound); ok { return nil } diff --git a/newrelic/resource_newrelic_one_dashboard_raw_test.go b/newrelic/resource_newrelic_one_dashboard_raw_test.go index 47f3676e4..7be822aa2 100644 --- a/newrelic/resource_newrelic_one_dashboard_raw_test.go +++ b/newrelic/resource_newrelic_one_dashboard_raw_test.go @@ -11,7 +11,7 @@ import ( "github.com/hashicorp/terraform-plugin-sdk/v2/helper/acctest" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" "github.com/hashicorp/terraform-plugin-sdk/v2/terraform" - "github.com/newrelic/newrelic-client-go/pkg/entities" + "github.com/newrelic/newrelic-client-go/pkg/common" ) // TestAccNewRelicOneDashboardRaw_CreateOnePage Ensure that we can create a NR1 Dashboard @@ -114,7 +114,7 @@ func testAccCheckNewRelicOneDashboardRawDestroy(s *terraform.State) error { continue } - _, err := client.Dashboards.GetDashboardEntity(entities.EntityGUID(r.Primary.ID)) + _, err := client.Dashboards.GetDashboardEntity(common.EntityGUID(r.Primary.ID)) if err == nil { return fmt.Errorf("one_dashboard still exists") } diff --git a/newrelic/resource_newrelic_one_dashboard_test.go b/newrelic/resource_newrelic_one_dashboard_test.go index ec43a7297..bd696c031 100644 --- a/newrelic/resource_newrelic_one_dashboard_test.go +++ b/newrelic/resource_newrelic_one_dashboard_test.go @@ -13,7 +13,7 @@ import ( "github.com/hashicorp/terraform-plugin-sdk/v2/helper/acctest" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" "github.com/hashicorp/terraform-plugin-sdk/v2/terraform" - "github.com/newrelic/newrelic-client-go/pkg/entities" + "github.com/newrelic/newrelic-client-go/pkg/common" ) // TestAccNewRelicOneDashboard_CreateOnePage Ensure that we can create a NR1 Dashboard @@ -347,7 +347,7 @@ func testAccCheckNewRelicOneDashboardExists(name string, sleepSeconds int) resou client := testAccProvider.Meta().(*ProviderConfig).NewClient - found, err := client.Dashboards.GetDashboardEntity(entities.EntityGUID(rs.Primary.ID)) + found, err := client.Dashboards.GetDashboardEntity(common.EntityGUID(rs.Primary.ID)) if err != nil { return err } @@ -370,7 +370,7 @@ func testAccCheckNewRelicOneDashboardDestroy(s *terraform.State) error { continue } - _, err := client.Dashboards.GetDashboardEntity(entities.EntityGUID(r.Primary.ID)) + _, err := client.Dashboards.GetDashboardEntity(common.EntityGUID(r.Primary.ID)) if err == nil { return fmt.Errorf("one_dashboard still exists") } diff --git a/newrelic/structures_newrelic_one_dashboard.go b/newrelic/structures_newrelic_one_dashboard.go index e9a6b05e1..73949106d 100644 --- a/newrelic/structures_newrelic_one_dashboard.go +++ b/newrelic/structures_newrelic_one_dashboard.go @@ -7,6 +7,7 @@ import ( "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" + "github.com/newrelic/newrelic-client-go/pkg/common" "github.com/newrelic/newrelic-client-go/pkg/dashboards" "github.com/newrelic/newrelic-client-go/pkg/entities" "github.com/newrelic/newrelic-client-go/pkg/nrdb" @@ -63,7 +64,7 @@ func expandDashboardPageInput(pages []interface{}, meta interface{}) ([]dashboar // GUID exists for Update, null for new page if guid, ok := p["guid"]; ok { - page.GUID = entities.EntityGUID(guid.(string)) + page.GUID = common.EntityGUID(guid.(string)) } // For each of the widget type, we need to expand them as well @@ -498,11 +499,11 @@ func expandDashboardWidgetInput(w map[string]interface{}, meta interface{}) (das return widget, nil } -func expandLinkedEntityGUIDs(guids []interface{}) []entities.EntityGUID { - out := make([]entities.EntityGUID, len(guids)) +func expandLinkedEntityGUIDs(guids []interface{}) []common.EntityGUID { + out := make([]common.EntityGUID, len(guids)) for i := range out { - out[i] = entities.EntityGUID(guids[i].(string)) + out[i] = common.EntityGUID(guids[i].(string)) } return out diff --git a/newrelic/structures_newrelic_one_dashboard_raw.go b/newrelic/structures_newrelic_one_dashboard_raw.go index 25a7371cc..09135c370 100644 --- a/newrelic/structures_newrelic_one_dashboard_raw.go +++ b/newrelic/structures_newrelic_one_dashboard_raw.go @@ -6,6 +6,7 @@ import ( "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" + "github.com/newrelic/newrelic-client-go/pkg/common" "github.com/newrelic/newrelic-client-go/pkg/dashboards" "github.com/newrelic/newrelic-client-go/pkg/entities" ) @@ -61,7 +62,7 @@ func expandDashboardRawPageInput(pages []interface{}, meta interface{}) ([]dashb // GUID exists for Update, null for new page if guid, ok := p["guid"]; ok { - page.GUID = entities.EntityGUID(guid.(string)) + page.GUID = common.EntityGUID(guid.(string)) } if widgets, ok := p["widget"]; ok { From 517b2c803c8352d10286bd1db095202ee97f59b8 Mon Sep 17 00:00:00 2001 From: Jonathan Thurman Date: Tue, 21 Sep 2021 11:25:07 -0700 Subject: [PATCH 5/5] chore: auto spell check and fix notes/changelog on release --- build/compile.mk | 6 +++--- build/document.mk | 2 ++ scripts/release.sh | 2 ++ 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/build/compile.mk b/build/compile.mk index 223d3e6c9..a12820d91 100644 --- a/build/compile.mk +++ b/build/compile.mk @@ -29,9 +29,9 @@ compile-all: deps-only compile-only: deps-only @echo "=== $(PROJECT_NAME) === [ compile ]: building commands:" @mkdir -p $(BUILD_DIR)/$(GOOS) - echo "=== $(PROJECT_NAME) === [ compile ]: $(BUILD_DIR)$(GOOS)/$(BINARY)"; \ - BUILD_FILES=`find $(SRCDIR)/newrelic -type f -name "*.go"` ; \ - GOOS=$(GOOS) $(GO) build -ldflags=$(LDFLAGS) -o $(BUILD_DIR)/$(GOOS)/$(BINARY) $$BUILD_FILES ; \ + @echo "=== $(PROJECT_NAME) === [ compile ]: $(BUILD_DIR)$(GOOS)/$(BINARY)" + @BUILD_FILES=`find $(SRCDIR)/newrelic -type f -name "*.go"` ; \ + GOOS=$(GOOS) $(GO) build -ldflags=$(LDFLAGS) -o $(BUILD_DIR)/$(GOOS)/$(BINARY) $$BUILD_FILES ; \ # Override GOOS for these specific targets compile-darwin: GOOS=darwin diff --git a/build/document.mk b/build/document.mk index 5b5106678..069046938 100644 --- a/build/document.mk +++ b/build/document.mk @@ -8,6 +8,7 @@ GODOC_HTTP ?= "localhost:6060" CHANGELOG_CMD ?= git-chglog CHANGELOG_FILE ?= CHANGELOG.md RELEASE_NOTES_FILE ?= relnotes.md +MISSPELL ?= misspell changelog: tools @echo "=== $(PROJECT_NAME) === [ changelog ]: Generating changelog..." @@ -26,5 +27,6 @@ release-notes: tools @echo "=== $(PROJECT_NAME) === [ release-notes ]: Generating release notes..." @mkdir -p $(SRCDIR)/tmp @$(CHANGELOG_CMD) --silent -o $(SRCDIR)/tmp/$(RELEASE_NOTES_FILE) v$(PROJECT_VER_TAGGED) + @$(MISSPELL) -source text -w $(SRCDIR)/tmp/$(RELEASE_NOTES_FILE) .PHONY: docs changelog release-notes diff --git a/scripts/release.sh b/scripts/release.sh index 4140bb121..f779d7c8b 100755 --- a/scripts/release.sh +++ b/scripts/release.sh @@ -31,6 +31,8 @@ git checkout -b release/v${RELEASE_VERSION} # Auto-generate CHANGELOG updates git-chglog --next-tag v${RELEASE_VERSION} -o CHANGELOG.md --sort semver +# Fix any spelling issues in the CHANGELOG +misspell -source text -w CHANGELOG.md # Commit CHANGELOG updates git add CHANGELOG.md