From 4d07c5eb924d87120d765aecc487e654151e9133 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?T=C3=A9rence=20Chateign=C3=A9?= Date: Fri, 20 Oct 2023 16:52:46 +0200 Subject: [PATCH] fix: prefix module name with github.com/padok-team/ --- checks/all.go | 3 ++- checks/iterate_use_for_each.go | 3 ++- checks/profile.go | 3 ++- checks/provider_in_module.go | 4 ++-- checks/refresh_time.go | 2 +- checks/remote_module_version.go | 5 +++-- checks/required_provider_version_operator.go | 5 +++-- checks/resource_naming_this_these.go | 5 +++-- checks/snake_case.go | 5 +++-- checks/state_checks.go | 3 ++- checks/static_checks.go | 3 ++- checks/stuttering.go | 5 +++-- checks/var_contains_description.go | 5 +++-- checks/var_number_matches_type.go | 5 +++-- checks/var_type_any.go | 5 +++-- cmd/all.go | 5 +++-- cmd/profile.go | 7 ++++--- cmd/state_checks.go | 5 +++-- cmd/static_checks.go | 5 +++-- cmd/version.go | 3 ++- go.mod | 2 +- helpers/compute_layer_data.go | 3 ++- helpers/getters.go | 3 ++- helpers/render.go | 3 ++- internal/version/version.go | 6 +++--- main.go | 2 +- 26 files changed, 63 insertions(+), 42 deletions(-) diff --git a/checks/all.go b/checks/all.go index f1f2f72..b8a818a 100644 --- a/checks/all.go +++ b/checks/all.go @@ -1,8 +1,9 @@ package checks import ( - "guacamole/data" "sync" + + "github.com/padok-team/guacamole/data" ) func All(layers []*data.Layer) []data.Check { diff --git a/checks/iterate_use_for_each.go b/checks/iterate_use_for_each.go index e39c2d9..ca37a3b 100644 --- a/checks/iterate_use_for_each.go +++ b/checks/iterate_use_for_each.go @@ -2,9 +2,10 @@ package checks import ( "encoding/json" - "guacamole/data" "strconv" "sync" + + "github.com/padok-team/guacamole/data" ) type Change struct { diff --git a/checks/profile.go b/checks/profile.go index a01756a..f591ac1 100644 --- a/checks/profile.go +++ b/checks/profile.go @@ -2,11 +2,12 @@ package checks import ( "fmt" - "guacamole/data" "log" "strconv" "strings" + "github.com/padok-team/guacamole/data" + "github.com/fatih/color" "golang.org/x/exp/slices" ) diff --git a/checks/provider_in_module.go b/checks/provider_in_module.go index 6c60755..d22e8b5 100644 --- a/checks/provider_in_module.go +++ b/checks/provider_in_module.go @@ -1,8 +1,8 @@ package checks import ( - "guacamole/data" - "guacamole/helpers" + "github.com/padok-team/guacamole/data" + "github.com/padok-team/guacamole/helpers" "github.com/hashicorp/terraform-config-inspect/tfconfig" ) diff --git a/checks/refresh_time.go b/checks/refresh_time.go index 3011258..65651a9 100644 --- a/checks/refresh_time.go +++ b/checks/refresh_time.go @@ -1,7 +1,7 @@ package checks import ( - "guacamole/data" + "github.com/padok-team/guacamole/data" ) func RefreshTime(layers []*data.Layer) (data.Check, error) { diff --git a/checks/remote_module_version.go b/checks/remote_module_version.go index 0e47986..5903e3b 100644 --- a/checks/remote_module_version.go +++ b/checks/remote_module_version.go @@ -1,12 +1,13 @@ package checks import ( - "guacamole/data" - "guacamole/helpers" "regexp" "strconv" "strings" + "github.com/padok-team/guacamole/data" + "github.com/padok-team/guacamole/helpers" + "github.com/hashicorp/terraform-config-inspect/tfconfig" ) diff --git a/checks/required_provider_version_operator.go b/checks/required_provider_version_operator.go index e115cef..df2a777 100644 --- a/checks/required_provider_version_operator.go +++ b/checks/required_provider_version_operator.go @@ -1,10 +1,11 @@ package checks import ( - "guacamole/data" - "guacamole/helpers" "regexp" + "github.com/padok-team/guacamole/data" + "github.com/padok-team/guacamole/helpers" + "github.com/hashicorp/terraform-config-inspect/tfconfig" ) diff --git a/checks/resource_naming_this_these.go b/checks/resource_naming_this_these.go index 3d6d23b..13684c5 100644 --- a/checks/resource_naming_this_these.go +++ b/checks/resource_naming_this_these.go @@ -1,10 +1,11 @@ package checks import ( - "guacamole/data" - "guacamole/helpers" "strconv" + "github.com/padok-team/guacamole/data" + "github.com/padok-team/guacamole/helpers" + pluralize "github.com/gertd/go-pluralize" "github.com/hashicorp/terraform-config-inspect/tfconfig" ) diff --git a/checks/snake_case.go b/checks/snake_case.go index 4bfcc00..24734a7 100644 --- a/checks/snake_case.go +++ b/checks/snake_case.go @@ -1,11 +1,12 @@ package checks import ( - "guacamole/data" - "guacamole/helpers" "regexp" "strconv" + "github.com/padok-team/guacamole/data" + "github.com/padok-team/guacamole/helpers" + "github.com/hashicorp/terraform-config-inspect/tfconfig" ) diff --git a/checks/state_checks.go b/checks/state_checks.go index b4ad85f..322a590 100644 --- a/checks/state_checks.go +++ b/checks/state_checks.go @@ -1,8 +1,9 @@ package checks import ( - "guacamole/data" "sync" + + "github.com/padok-team/guacamole/data" ) func StateChecks(layers []*data.Layer) []data.Check { diff --git a/checks/static_checks.go b/checks/static_checks.go index 9ba1efe..f4fd00a 100644 --- a/checks/static_checks.go +++ b/checks/static_checks.go @@ -1,9 +1,10 @@ package checks import ( - "guacamole/data" "sync" + "github.com/padok-team/guacamole/data" + "golang.org/x/exp/slices" ) diff --git a/checks/stuttering.go b/checks/stuttering.go index b541d4c..ab3f253 100644 --- a/checks/stuttering.go +++ b/checks/stuttering.go @@ -1,11 +1,12 @@ package checks import ( - "guacamole/data" - "guacamole/helpers" "strconv" "strings" + "github.com/padok-team/guacamole/data" + "github.com/padok-team/guacamole/helpers" + "github.com/hashicorp/terraform-config-inspect/tfconfig" ) diff --git a/checks/var_contains_description.go b/checks/var_contains_description.go index 03cc863..cefc06c 100644 --- a/checks/var_contains_description.go +++ b/checks/var_contains_description.go @@ -1,10 +1,11 @@ package checks import ( - "guacamole/data" - "guacamole/helpers" "strconv" + "github.com/padok-team/guacamole/data" + "github.com/padok-team/guacamole/helpers" + "github.com/hashicorp/terraform-config-inspect/tfconfig" ) diff --git a/checks/var_number_matches_type.go b/checks/var_number_matches_type.go index ebe8dcc..149bcb5 100644 --- a/checks/var_number_matches_type.go +++ b/checks/var_number_matches_type.go @@ -1,11 +1,12 @@ package checks import ( - "guacamole/data" - "guacamole/helpers" "strconv" "strings" + "github.com/padok-team/guacamole/data" + "github.com/padok-team/guacamole/helpers" + pluralize "github.com/gertd/go-pluralize" "github.com/hashicorp/terraform-config-inspect/tfconfig" ) diff --git a/checks/var_type_any.go b/checks/var_type_any.go index 3c5533b..a760875 100644 --- a/checks/var_type_any.go +++ b/checks/var_type_any.go @@ -1,11 +1,12 @@ package checks import ( - "guacamole/data" - "guacamole/helpers" "regexp" "strconv" + "github.com/padok-team/guacamole/data" + "github.com/padok-team/guacamole/helpers" + "github.com/hashicorp/terraform-config-inspect/tfconfig" ) diff --git a/cmd/all.go b/cmd/all.go index f42dfc1..0f82be3 100644 --- a/cmd/all.go +++ b/cmd/all.go @@ -4,11 +4,12 @@ Copyright © 2023 NAME HERE package cmd import ( - "guacamole/checks" - "guacamole/helpers" "log" "os" + "github.com/padok-team/guacamole/checks" + "github.com/padok-team/guacamole/helpers" + "github.com/spf13/cobra" ) diff --git a/cmd/profile.go b/cmd/profile.go index b78fe93..c833f34 100644 --- a/cmd/profile.go +++ b/cmd/profile.go @@ -5,12 +5,13 @@ package cmd import ( "fmt" - "guacamole/checks" - "guacamole/data" - "guacamole/helpers" "log" "os" + "github.com/padok-team/guacamole/checks" + "github.com/padok-team/guacamole/data" + "github.com/padok-team/guacamole/helpers" + "github.com/spf13/cobra" "github.com/spf13/viper" ) diff --git a/cmd/state_checks.go b/cmd/state_checks.go index 9144779..275e57f 100644 --- a/cmd/state_checks.go +++ b/cmd/state_checks.go @@ -5,11 +5,12 @@ package cmd import ( "fmt" - "guacamole/checks" - "guacamole/helpers" "log" "os" + "github.com/padok-team/guacamole/checks" + "github.com/padok-team/guacamole/helpers" + "github.com/spf13/cobra" "github.com/spf13/viper" ) diff --git a/cmd/static_checks.go b/cmd/static_checks.go index 77ed317..c57fddf 100644 --- a/cmd/static_checks.go +++ b/cmd/static_checks.go @@ -4,11 +4,12 @@ Copyright © 2023 NAME HERE package cmd import ( - "guacamole/checks" - "guacamole/helpers" "log" "os" + "github.com/padok-team/guacamole/checks" + "github.com/padok-team/guacamole/helpers" + "github.com/spf13/cobra" "github.com/spf13/viper" ) diff --git a/cmd/version.go b/cmd/version.go index 7f7a8f0..67c4933 100644 --- a/cmd/version.go +++ b/cmd/version.go @@ -2,7 +2,8 @@ package cmd import ( "fmt" - "guacamole/internal/version" + + "github.com/padok-team/guacamole/internal/version" "github.com/spf13/cobra" ) diff --git a/go.mod b/go.mod index ffa48d1..066a7eb 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module guacamole +module github.com/padok-team/guacamole go 1.20 diff --git a/helpers/compute_layer_data.go b/helpers/compute_layer_data.go index faead0b..c6e46b0 100644 --- a/helpers/compute_layer_data.go +++ b/helpers/compute_layer_data.go @@ -1,9 +1,10 @@ package helpers import ( - "guacamole/data" "runtime" "sync" + + "github.com/padok-team/guacamole/data" ) func ComputeLayers(withPlan bool) ([]*data.Layer, error) { diff --git a/helpers/getters.go b/helpers/getters.go index 6507207..fdf9f89 100644 --- a/helpers/getters.go +++ b/helpers/getters.go @@ -2,12 +2,13 @@ package helpers import ( "fmt" - "guacamole/data" "os" "path/filepath" "regexp" "strings" + "github.com/padok-team/guacamole/data" + "github.com/spf13/viper" ) diff --git a/helpers/render.go b/helpers/render.go index 2c27683..004e3e5 100644 --- a/helpers/render.go +++ b/helpers/render.go @@ -2,10 +2,11 @@ package helpers import ( "fmt" - "guacamole/data" "os" "strconv" + "github.com/padok-team/guacamole/data" + "github.com/jedib0t/go-pretty/v6/table" "github.com/savioxavier/termlink" "golang.org/x/term" diff --git a/internal/version/version.go b/internal/version/version.go index 19be71a..04b45b9 100644 --- a/internal/version/version.go +++ b/internal/version/version.go @@ -5,9 +5,9 @@ import ( ) var ( - Version = "dev" - CommitHash = "n/a" - BuildTimestamp = "n/a" + Version string + CommitHash string + BuildTimestamp string ) func BuildVersion() string { diff --git a/main.go b/main.go index 06727c5..1551eb8 100644 --- a/main.go +++ b/main.go @@ -1,7 +1,7 @@ package main import ( - "guacamole/cmd" + "github.com/padok-team/guacamole/cmd" ) func main() {