Skip to content

Commit

Permalink
fix: prefix module name with github.com/padok-team/
Browse files Browse the repository at this point in the history
  • Loading branch information
cterence committed Oct 20, 2023
1 parent 359b765 commit 4d07c5e
Show file tree
Hide file tree
Showing 26 changed files with 63 additions and 42 deletions.
3 changes: 2 additions & 1 deletion checks/all.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
package checks

import (
"guacamole/data"
"sync"

"github.com/padok-team/guacamole/data"
)

func All(layers []*data.Layer) []data.Check {
Expand Down
3 changes: 2 additions & 1 deletion checks/iterate_use_for_each.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@ package checks

import (
"encoding/json"
"guacamole/data"
"strconv"
"sync"

"github.com/padok-team/guacamole/data"
)

type Change struct {
Expand Down
3 changes: 2 additions & 1 deletion checks/profile.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
)
Expand Down
4 changes: 2 additions & 2 deletions checks/provider_in_module.go
Original file line number Diff line number Diff line change
@@ -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"
)
Expand Down
2 changes: 1 addition & 1 deletion checks/refresh_time.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package checks

import (
"guacamole/data"
"github.com/padok-team/guacamole/data"
)

func RefreshTime(layers []*data.Layer) (data.Check, error) {
Expand Down
5 changes: 3 additions & 2 deletions checks/remote_module_version.go
Original file line number Diff line number Diff line change
@@ -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"
)

Expand Down
5 changes: 3 additions & 2 deletions checks/required_provider_version_operator.go
Original file line number Diff line number Diff line change
@@ -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"
)

Expand Down
5 changes: 3 additions & 2 deletions checks/resource_naming_this_these.go
Original file line number Diff line number Diff line change
@@ -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"
)
Expand Down
5 changes: 3 additions & 2 deletions checks/snake_case.go
Original file line number Diff line number Diff line change
@@ -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"
)

Expand Down
3 changes: 2 additions & 1 deletion checks/state_checks.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
package checks

import (
"guacamole/data"
"sync"

"github.com/padok-team/guacamole/data"
)

func StateChecks(layers []*data.Layer) []data.Check {
Expand Down
3 changes: 2 additions & 1 deletion checks/static_checks.go
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
package checks

import (
"guacamole/data"
"sync"

"github.com/padok-team/guacamole/data"

"golang.org/x/exp/slices"
)

Expand Down
5 changes: 3 additions & 2 deletions checks/stuttering.go
Original file line number Diff line number Diff line change
@@ -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"
)

Expand Down
5 changes: 3 additions & 2 deletions checks/var_contains_description.go
Original file line number Diff line number Diff line change
@@ -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"
)

Expand Down
5 changes: 3 additions & 2 deletions checks/var_number_matches_type.go
Original file line number Diff line number Diff line change
@@ -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"
)
Expand Down
5 changes: 3 additions & 2 deletions checks/var_type_any.go
Original file line number Diff line number Diff line change
@@ -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"
)

Expand Down
5 changes: 3 additions & 2 deletions cmd/all.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,12 @@ Copyright © 2023 NAME HERE <EMAIL ADDRESS>
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"
)

Expand Down
7 changes: 4 additions & 3 deletions cmd/profile.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
)
Expand Down
5 changes: 3 additions & 2 deletions cmd/state_checks.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
)
Expand Down
5 changes: 3 additions & 2 deletions cmd/static_checks.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,12 @@ Copyright © 2023 NAME HERE <EMAIL ADDRESS>
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"
)
Expand Down
3 changes: 2 additions & 1 deletion cmd/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ package cmd

import (
"fmt"
"guacamole/internal/version"

"github.com/padok-team/guacamole/internal/version"

"github.com/spf13/cobra"
)
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module guacamole
module github.com/padok-team/guacamole

go 1.20

Expand Down
3 changes: 2 additions & 1 deletion helpers/compute_layer_data.go
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
package helpers

import (
"guacamole/data"
"runtime"
"sync"

"github.com/padok-team/guacamole/data"
)

func ComputeLayers(withPlan bool) ([]*data.Layer, error) {
Expand Down
3 changes: 2 additions & 1 deletion helpers/getters.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
)

Expand Down
3 changes: 2 additions & 1 deletion helpers/render.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
6 changes: 3 additions & 3 deletions internal/version/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ import (
)

var (
Version = "dev"
CommitHash = "n/a"
BuildTimestamp = "n/a"
Version string
CommitHash string
BuildTimestamp string
)

func BuildVersion() string {
Expand Down
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package main

import (
"guacamole/cmd"
"github.com/padok-team/guacamole/cmd"
)

func main() {
Expand Down

0 comments on commit 4d07c5e

Please sign in to comment.