diff --git a/argocd/repoClient.go b/argocd/repoClient.go index 7189d3f..ec52141 100644 --- a/argocd/repoClient.go +++ b/argocd/repoClient.go @@ -4,12 +4,13 @@ import ( "context" "encoding/json" "fmt" - "goff/util" "io/fs" "os" "path/filepath" "strings" + "github.com/puzzle/goff/util" + "github.com/argoproj/argo-cd/v2/pkg/apis/application/v1alpha1" "github.com/argoproj/argo-cd/v2/reposerver/apiclient" "github.com/argoproj/argo-cd/v2/util/argo" diff --git a/cmd/argocd.go b/cmd/argocd.go index d922508..6b38c78 100644 --- a/cmd/argocd.go +++ b/cmd/argocd.go @@ -5,7 +5,7 @@ Copyright © 2023 NAME HERE package cmd import ( - "goff/argocd" + "github.com/puzzle/goff/argocd" "github.com/spf13/cobra" ) diff --git a/cmd/diff.go b/cmd/diff.go index e3b9f59..e047e3b 100644 --- a/cmd/diff.go +++ b/cmd/diff.go @@ -5,7 +5,7 @@ Copyright © 2023 NAME HERE package cmd import ( - "goff/diff" + "github.com/puzzle/goff/diff" "github.com/spf13/cobra" ) diff --git a/cmd/kustomize.go b/cmd/kustomize.go index c836a2b..e2e2370 100644 --- a/cmd/kustomize.go +++ b/cmd/kustomize.go @@ -5,8 +5,8 @@ Copyright © 2023 NAME HERE package cmd import ( - "goff/cmd/kustomize" - "goff/kustomize/kustomizationgraph" + "github.com/puzzle/goff/cmd/kustomize" + "github.com/puzzle/goff/kustomize/kustomizationgraph" "github.com/spf13/cobra" ) diff --git a/cmd/kustomize/build.go b/cmd/kustomize/build.go index 8c0552b..f417280 100644 --- a/cmd/kustomize/build.go +++ b/cmd/kustomize/build.go @@ -1,7 +1,7 @@ package kustomize import ( - "goff/kustomize" + "github.com/puzzle/goff/kustomize" "github.com/spf13/cobra" ) diff --git a/cmd/split.go b/cmd/split.go index 5449a02..5608c7d 100644 --- a/cmd/split.go +++ b/cmd/split.go @@ -5,7 +5,7 @@ Copyright © 2023 NAME HERE package cmd import ( - "goff/util" + "github.com/puzzle/goff/util" "github.com/spf13/cobra" ) diff --git a/go.mod b/go.mod index 491b04f..eab651b 100755 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module goff +module github.com/puzzle/goff go 1.20 @@ -115,7 +115,7 @@ require ( github.com/robfig/cron/v3 v3.0.1 // indirect github.com/russross/blackfriday v1.5.2 // indirect github.com/sergi/go-diff v1.1.0 // indirect - github.com/sirupsen/logrus v1.9.0 // indirect + github.com/sirupsen/logrus v1.9.0 github.com/skeema/knownhosts v1.1.0 // indirect github.com/stretchr/objx v0.5.0 // indirect github.com/stretchr/testify v1.8.1 // indirect diff --git a/kustomize/kustomizationgraph/kustomizationgraph.go b/kustomize/kustomizationgraph/kustomizationgraph.go index a732acd..fc1468b 100755 --- a/kustomize/kustomizationgraph/kustomizationgraph.go +++ b/kustomize/kustomizationgraph/kustomizationgraph.go @@ -1,12 +1,13 @@ package kustomizationgraph import ( - "goff/kustomize/kustomizationfile" "os" "path" "path/filepath" "strings" + "github.com/puzzle/goff/kustomize/kustomizationfile" + "github.com/awalterschulze/gographviz" "github.com/pkg/errors" ) diff --git a/kustomize/kustomizationgraph/kustomizationgraph_test.go b/kustomize/kustomizationgraph/kustomizationgraph_test.go index 07c1cae..de5dfee 100755 --- a/kustomize/kustomizationgraph/kustomizationgraph_test.go +++ b/kustomize/kustomizationgraph/kustomizationgraph_test.go @@ -3,7 +3,7 @@ package kustomizationgraph import ( "testing" - "goff/kustomize/kustomizationfile" + "github.com/puzzle/goff/kustomize/kustomizationfile" "github.com/spf13/afero" ) diff --git a/kustomize/kustomize.go b/kustomize/kustomize.go index c018138..6aa1efc 100644 --- a/kustomize/kustomize.go +++ b/kustomize/kustomize.go @@ -2,12 +2,14 @@ package kustomize import ( "bytes" - "goff/kustomize/kustomizationfile" - "goff/util" "os" "path/filepath" "strings" + "github.com/puzzle/goff/util" + + "github.com/puzzle/goff/kustomize/kustomizationfile" + "sigs.k8s.io/kustomize/api/filesys" "sigs.k8s.io/kustomize/kustomize/v4/commands/build" ) diff --git a/main.go b/main.go index 77b5f92..1cd35d0 100755 --- a/main.go +++ b/main.go @@ -4,7 +4,7 @@ Copyright © 2023 Ch. Schlatter schlatter@puzzle.ch package main import ( - "goff/cmd" + "github.com/puzzle/goff/cmd" ) func main() {