From d0196a7c1427e46a3826b6deb50094667faf6928 Mon Sep 17 00:00:00 2001 From: Ric Featherstone Date: Thu, 9 Nov 2023 16:32:40 +0000 Subject: [PATCH] refactor: use v2 --- controlplane/cli/bucket.go | 2 +- controlplane/cli/image.go | 2 +- controlplane/cli/infra.go | 2 +- controlplane/cli/scenario.go | 2 +- controlplane/cmd/main.go | 4 ++-- controlplane/commands/packer.go | 2 +- controlplane/commands/terraform.go | 2 +- controlplane/simulator.go | 4 ++-- go.mod | 2 +- internal/cli/bucket.go | 2 +- internal/cli/image.go | 2 +- internal/cli/infra.go | 2 +- internal/cli/scenario.go | 4 ++-- internal/cli/simulator.go | 2 +- internal/cmd/main.go | 4 ++-- internal/container/runner.go | 6 +++--- scenarios/scenarios.go | 2 +- 17 files changed, 23 insertions(+), 23 deletions(-) diff --git a/controlplane/cli/bucket.go b/controlplane/cli/bucket.go index 33a9e662..26742ba1 100644 --- a/controlplane/cli/bucket.go +++ b/controlplane/cli/bucket.go @@ -7,7 +7,7 @@ import ( "github.com/spf13/cobra" - "github.com/controlplaneio/simulator/controlplane" + "github.com/controlplaneio/simulator/v2/controlplane" ) var bucketCmd = &cobra.Command{ diff --git a/controlplane/cli/image.go b/controlplane/cli/image.go index 431a45b7..902517d6 100644 --- a/controlplane/cli/image.go +++ b/controlplane/cli/image.go @@ -7,7 +7,7 @@ import ( "github.com/spf13/cobra" - "github.com/controlplaneio/simulator/controlplane" + "github.com/controlplaneio/simulator/v2/controlplane" ) var ( diff --git a/controlplane/cli/infra.go b/controlplane/cli/infra.go index 73b51299..fcd4e510 100644 --- a/controlplane/cli/infra.go +++ b/controlplane/cli/infra.go @@ -7,7 +7,7 @@ import ( "github.com/spf13/cobra" - "github.com/controlplaneio/simulator/controlplane" + "github.com/controlplaneio/simulator/v2/controlplane" ) var infraCmd = &cobra.Command{ diff --git a/controlplane/cli/scenario.go b/controlplane/cli/scenario.go index 2c8eeeed..b31b611e 100644 --- a/controlplane/cli/scenario.go +++ b/controlplane/cli/scenario.go @@ -7,7 +7,7 @@ import ( "github.com/spf13/cobra" - "github.com/controlplaneio/simulator/controlplane" + "github.com/controlplaneio/simulator/v2/controlplane" ) var scenarioCmd = &cobra.Command{ diff --git a/controlplane/cmd/main.go b/controlplane/cmd/main.go index 4431ce47..ab6bf0fd 100644 --- a/controlplane/cmd/main.go +++ b/controlplane/cmd/main.go @@ -1,8 +1,8 @@ package main import ( - "github.com/controlplaneio/simulator/controlplane/cli" - "github.com/controlplaneio/simulator/logging" + "github.com/controlplaneio/simulator/v2/controlplane/cli" + "github.com/controlplaneio/simulator/v2/logging" ) func main() { diff --git a/controlplane/commands/packer.go b/controlplane/commands/packer.go index dbfcfeef..3ee50c64 100644 --- a/controlplane/commands/packer.go +++ b/controlplane/commands/packer.go @@ -1,7 +1,7 @@ package commands import ( - "github.com/controlplaneio/simulator/controlplane/aws" + "github.com/controlplaneio/simulator/v2/controlplane/aws" ) const ( diff --git a/controlplane/commands/terraform.go b/controlplane/commands/terraform.go index e364b0a4..42bf1731 100644 --- a/controlplane/commands/terraform.go +++ b/controlplane/commands/terraform.go @@ -1,7 +1,7 @@ package commands import ( - "github.com/controlplaneio/simulator/controlplane/aws" + "github.com/controlplaneio/simulator/v2/controlplane/aws" ) type TerraformCommandType bool diff --git a/controlplane/simulator.go b/controlplane/simulator.go index 787aac34..42ccae08 100644 --- a/controlplane/simulator.go +++ b/controlplane/simulator.go @@ -5,8 +5,8 @@ import ( "fmt" "path/filepath" - "github.com/controlplaneio/simulator/controlplane/aws" - "github.com/controlplaneio/simulator/controlplane/commands" + "github.com/controlplaneio/simulator/v2/controlplane/aws" + "github.com/controlplaneio/simulator/v2/controlplane/commands" ) const ( diff --git a/go.mod b/go.mod index d5b0c3e5..dbd2b15f 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module github.com/controlplaneio/simulator +module github.com/controlplaneio/simulator/v2 go 1.21 diff --git a/internal/cli/bucket.go b/internal/cli/bucket.go index 5a4540f8..669d1044 100644 --- a/internal/cli/bucket.go +++ b/internal/cli/bucket.go @@ -8,7 +8,7 @@ import ( "github.com/spf13/cobra" - "github.com/controlplaneio/simulator/internal/container" + "github.com/controlplaneio/simulator/v2/internal/container" ) var bucketCmd = &cobra.Command{ diff --git a/internal/cli/image.go b/internal/cli/image.go index a770aab1..1dc2a7be 100644 --- a/internal/cli/image.go +++ b/internal/cli/image.go @@ -9,7 +9,7 @@ import ( "github.com/spf13/cobra" - "github.com/controlplaneio/simulator/internal/container" + "github.com/controlplaneio/simulator/v2/internal/container" ) var imageCmd = &cobra.Command{ diff --git a/internal/cli/infra.go b/internal/cli/infra.go index f127fb7c..2db5b563 100644 --- a/internal/cli/infra.go +++ b/internal/cli/infra.go @@ -8,7 +8,7 @@ import ( "github.com/spf13/cobra" - "github.com/controlplaneio/simulator/internal/container" + "github.com/controlplaneio/simulator/v2/internal/container" ) var infraCmd = &cobra.Command{ diff --git a/internal/cli/scenario.go b/internal/cli/scenario.go index 2439e117..59a8f79a 100644 --- a/internal/cli/scenario.go +++ b/internal/cli/scenario.go @@ -8,8 +8,8 @@ import ( "github.com/olekukonko/tablewriter" "github.com/spf13/cobra" - "github.com/controlplaneio/simulator/internal/container" - "github.com/controlplaneio/simulator/scenarios" + "github.com/controlplaneio/simulator/v2/internal/container" + "github.com/controlplaneio/simulator/v2/scenarios" ) var scenarioCmd = &cobra.Command{ diff --git a/internal/cli/simulator.go b/internal/cli/simulator.go index a2ba686d..9669e286 100644 --- a/internal/cli/simulator.go +++ b/internal/cli/simulator.go @@ -3,7 +3,7 @@ package cli import ( "github.com/spf13/cobra" - "github.com/controlplaneio/simulator/internal/config" + "github.com/controlplaneio/simulator/v2/internal/config" ) var cfg *config.Config diff --git a/internal/cmd/main.go b/internal/cmd/main.go index 91383f7a..0514452f 100644 --- a/internal/cmd/main.go +++ b/internal/cmd/main.go @@ -1,8 +1,8 @@ package main import ( - "github.com/controlplaneio/simulator/internal/cli" - "github.com/controlplaneio/simulator/logging" + "github.com/controlplaneio/simulator/v2/internal/cli" + "github.com/controlplaneio/simulator/v2/logging" ) func main() { diff --git a/internal/container/runner.go b/internal/container/runner.go index 7a712ecc..829fb08f 100644 --- a/internal/container/runner.go +++ b/internal/container/runner.go @@ -17,9 +17,9 @@ import ( "github.com/docker/docker/client" v1 "github.com/opencontainers/image-spec/specs-go/v1" - "github.com/controlplaneio/simulator/controlplane" - "github.com/controlplaneio/simulator/controlplane/aws" - "github.com/controlplaneio/simulator/internal/config" + "github.com/controlplaneio/simulator/v2/controlplane" + "github.com/controlplaneio/simulator/v2/controlplane/aws" + "github.com/controlplaneio/simulator/v2/internal/config" ) var ( diff --git a/scenarios/scenarios.go b/scenarios/scenarios.go index 3e6bc46d..54e4621b 100644 --- a/scenarios/scenarios.go +++ b/scenarios/scenarios.go @@ -8,7 +8,7 @@ import ( "gopkg.in/yaml.v2" - "github.com/controlplaneio/simulator/controlplane" + "github.com/controlplaneio/simulator/v2/controlplane" ) //go:embed scenarios.yaml