mirror of
https://github.com/kairos-io/kairos-agent.git
synced 2025-08-31 08:33:17 +00:00
Change module path according to Go docs (#1220)
https://go.dev/doc/modules/major-version This way we can bump the kairos dependency on the provider-kairos repo which otherwise produced the error: ``` ~/workspace/kairos/provider-kairos (main)*$ go get -u github.com/kairos-io/kairos@v2.0.0-alpha3 go: github.com/kairos-io/kairos@v2.0.0-alpha3: invalid version: module contains a go.mod file, so module path must match major version ("github.com/kairos-io/kairos/v2") ``` Signed-off-by: Dimitris Karakasilis <dimitris@karakasilis.me> Co-authored-by: Itxaka <itxaka.garcia@spectrocloud.com>
This commit is contained in:
committed by
Itxaka
parent
1073b07f6a
commit
e7807dd66c
@@ -8,10 +8,10 @@ import (
|
||||
events "github.com/kairos-io/kairos-sdk/bus"
|
||||
"github.com/kairos-io/kairos-sdk/machine"
|
||||
"github.com/kairos-io/kairos-sdk/utils"
|
||||
hook "github.com/kairos-io/kairos/internal/agent/hooks"
|
||||
"github.com/kairos-io/kairos/internal/bus"
|
||||
config "github.com/kairos-io/kairos/pkg/config"
|
||||
"github.com/kairos-io/kairos/pkg/config/collector"
|
||||
hook "github.com/kairos-io/kairos/v2/internal/agent/hooks"
|
||||
"github.com/kairos-io/kairos/v2/internal/bus"
|
||||
config "github.com/kairos-io/kairos/v2/pkg/config"
|
||||
"github.com/kairos-io/kairos/v2/pkg/config/collector"
|
||||
"github.com/nxadm/tail"
|
||||
)
|
||||
|
||||
|
@@ -6,8 +6,8 @@ import (
|
||||
"os"
|
||||
"path/filepath"
|
||||
|
||||
. "github.com/kairos-io/kairos/internal/agent"
|
||||
"github.com/kairos-io/kairos/internal/bus"
|
||||
. "github.com/kairos-io/kairos/v2/internal/agent"
|
||||
"github.com/kairos-io/kairos/v2/internal/bus"
|
||||
|
||||
. "github.com/onsi/ginkgo/v2"
|
||||
. "github.com/onsi/gomega"
|
||||
|
@@ -3,7 +3,7 @@ package agent
|
||||
import (
|
||||
"os"
|
||||
|
||||
"github.com/kairos-io/kairos/internal/kairos"
|
||||
"github.com/kairos-io/kairos/v2/internal/kairos"
|
||||
|
||||
"gopkg.in/yaml.v2"
|
||||
)
|
||||
|
@@ -3,7 +3,7 @@ package hook
|
||||
import (
|
||||
"github.com/kairos-io/kairos-sdk/bundles"
|
||||
"github.com/kairos-io/kairos-sdk/machine"
|
||||
config "github.com/kairos-io/kairos/pkg/config"
|
||||
config "github.com/kairos-io/kairos/v2/pkg/config"
|
||||
)
|
||||
|
||||
type BundleOption struct{}
|
||||
|
@@ -4,7 +4,7 @@ import (
|
||||
"fmt"
|
||||
|
||||
"github.com/kairos-io/kairos-sdk/system"
|
||||
config "github.com/kairos-io/kairos/pkg/config"
|
||||
config "github.com/kairos-io/kairos/v2/pkg/config"
|
||||
)
|
||||
|
||||
type GrubOptions struct{}
|
||||
|
@@ -1,7 +1,7 @@
|
||||
package hook
|
||||
|
||||
import (
|
||||
config "github.com/kairos-io/kairos/pkg/config"
|
||||
config "github.com/kairos-io/kairos/v2/pkg/config"
|
||||
)
|
||||
|
||||
type Interface interface {
|
||||
|
@@ -7,7 +7,7 @@ import (
|
||||
|
||||
"github.com/kairos-io/kairos-sdk/machine"
|
||||
"github.com/kairos-io/kairos-sdk/utils"
|
||||
config "github.com/kairos-io/kairos/pkg/config"
|
||||
config "github.com/kairos-io/kairos/v2/pkg/config"
|
||||
|
||||
kcryptconfig "github.com/kairos-io/kcrypt/pkg/config"
|
||||
)
|
||||
|
@@ -2,7 +2,7 @@ package hook
|
||||
|
||||
import (
|
||||
"github.com/kairos-io/kairos-sdk/utils"
|
||||
"github.com/kairos-io/kairos/pkg/config"
|
||||
"github.com/kairos-io/kairos/v2/pkg/config"
|
||||
)
|
||||
|
||||
type Lifecycle struct{}
|
||||
|
@@ -7,7 +7,7 @@ import (
|
||||
"strings"
|
||||
|
||||
"github.com/kairos-io/kairos-sdk/machine"
|
||||
config "github.com/kairos-io/kairos/pkg/config"
|
||||
config "github.com/kairos-io/kairos/v2/pkg/config"
|
||||
"github.com/mudler/yip/pkg/schema"
|
||||
yip "github.com/mudler/yip/pkg/schema"
|
||||
"gopkg.in/yaml.v1"
|
||||
|
@@ -2,7 +2,7 @@ package hook
|
||||
|
||||
import (
|
||||
"github.com/kairos-io/kairos-sdk/utils"
|
||||
config "github.com/kairos-io/kairos/pkg/config"
|
||||
config "github.com/kairos-io/kairos/v2/pkg/config"
|
||||
|
||||
events "github.com/kairos-io/kairos-sdk/bus"
|
||||
)
|
||||
|
@@ -15,11 +15,11 @@ import (
|
||||
events "github.com/kairos-io/kairos-sdk/bus"
|
||||
"github.com/kairos-io/kairos-sdk/machine"
|
||||
"github.com/kairos-io/kairos-sdk/utils"
|
||||
hook "github.com/kairos-io/kairos/internal/agent/hooks"
|
||||
"github.com/kairos-io/kairos/internal/bus"
|
||||
"github.com/kairos-io/kairos/internal/cmd"
|
||||
config "github.com/kairos-io/kairos/pkg/config"
|
||||
"github.com/kairos-io/kairos/pkg/config/collector"
|
||||
hook "github.com/kairos-io/kairos/v2/internal/agent/hooks"
|
||||
"github.com/kairos-io/kairos/v2/internal/bus"
|
||||
"github.com/kairos-io/kairos/v2/internal/cmd"
|
||||
config "github.com/kairos-io/kairos/v2/pkg/config"
|
||||
"github.com/kairos-io/kairos/v2/pkg/config/collector"
|
||||
qr "github.com/mudler/go-nodepair/qrcode"
|
||||
"github.com/mudler/go-pluggable"
|
||||
"github.com/pterm/pterm"
|
||||
|
@@ -4,7 +4,7 @@ import (
|
||||
"context"
|
||||
"os"
|
||||
|
||||
"github.com/kairos-io/kairos/pkg/config"
|
||||
"github.com/kairos-io/kairos/v2/pkg/config"
|
||||
"gopkg.in/yaml.v3"
|
||||
|
||||
. "github.com/onsi/ginkgo/v2"
|
||||
|
@@ -5,9 +5,9 @@ import (
|
||||
"fmt"
|
||||
"strings"
|
||||
|
||||
"github.com/kairos-io/kairos/internal/bus"
|
||||
"github.com/kairos-io/kairos/internal/cmd"
|
||||
config "github.com/kairos-io/kairos/pkg/config"
|
||||
"github.com/kairos-io/kairos/v2/internal/bus"
|
||||
"github.com/kairos-io/kairos/v2/internal/cmd"
|
||||
config "github.com/kairos-io/kairos/v2/pkg/config"
|
||||
|
||||
events "github.com/kairos-io/kairos-sdk/bus"
|
||||
"github.com/kairos-io/kairos-sdk/unstructured"
|
||||
|
@@ -4,9 +4,9 @@ import (
|
||||
"fmt"
|
||||
|
||||
events "github.com/kairos-io/kairos-sdk/bus"
|
||||
"github.com/kairos-io/kairos/internal/bus"
|
||||
"github.com/kairos-io/kairos/pkg/config"
|
||||
"github.com/kairos-io/kairos/pkg/config/collector"
|
||||
"github.com/kairos-io/kairos/v2/internal/bus"
|
||||
"github.com/kairos-io/kairos/v2/pkg/config"
|
||||
"github.com/kairos-io/kairos/v2/pkg/config/collector"
|
||||
"github.com/mudler/go-pluggable"
|
||||
)
|
||||
|
||||
|
@@ -7,8 +7,8 @@ import (
|
||||
events "github.com/kairos-io/kairos-sdk/bus"
|
||||
"github.com/kairos-io/kairos-sdk/machine"
|
||||
"github.com/kairos-io/kairos-sdk/utils"
|
||||
"github.com/kairos-io/kairos/internal/bus"
|
||||
"github.com/kairos-io/kairos/internal/cmd"
|
||||
"github.com/kairos-io/kairos/v2/internal/bus"
|
||||
"github.com/kairos-io/kairos/v2/internal/cmd"
|
||||
qr "github.com/mudler/go-nodepair/qrcode"
|
||||
"github.com/mudler/go-pluggable"
|
||||
"github.com/pterm/pterm"
|
||||
|
@@ -11,11 +11,11 @@ import (
|
||||
sdk "github.com/kairos-io/kairos-sdk/bus"
|
||||
"github.com/kairos-io/kairos-sdk/machine"
|
||||
"github.com/kairos-io/kairos-sdk/utils"
|
||||
hook "github.com/kairos-io/kairos/internal/agent/hooks"
|
||||
"github.com/kairos-io/kairos/internal/bus"
|
||||
"github.com/kairos-io/kairos/internal/cmd"
|
||||
"github.com/kairos-io/kairos/pkg/config"
|
||||
"github.com/kairos-io/kairos/pkg/config/collector"
|
||||
hook "github.com/kairos-io/kairos/v2/internal/agent/hooks"
|
||||
"github.com/kairos-io/kairos/v2/internal/bus"
|
||||
"github.com/kairos-io/kairos/v2/internal/cmd"
|
||||
"github.com/kairos-io/kairos/v2/pkg/config"
|
||||
"github.com/kairos-io/kairos/v2/pkg/config/collector"
|
||||
|
||||
"github.com/mudler/go-pluggable"
|
||||
"github.com/pterm/pterm"
|
||||
|
@@ -9,12 +9,12 @@ import (
|
||||
"strings"
|
||||
|
||||
events "github.com/kairos-io/kairos-sdk/bus"
|
||||
"github.com/kairos-io/kairos/pkg/config"
|
||||
"github.com/kairos-io/kairos/pkg/config/collector"
|
||||
"github.com/kairos-io/kairos/v2/pkg/config"
|
||||
"github.com/kairos-io/kairos/v2/pkg/config/collector"
|
||||
|
||||
"github.com/kairos-io/kairos-sdk/utils"
|
||||
"github.com/kairos-io/kairos/internal/bus"
|
||||
"github.com/kairos-io/kairos/pkg/github"
|
||||
"github.com/kairos-io/kairos/v2/internal/bus"
|
||||
"github.com/kairos-io/kairos/v2/pkg/github"
|
||||
"github.com/mudler/go-pluggable"
|
||||
)
|
||||
|
||||
|
@@ -7,7 +7,7 @@ import (
|
||||
"os"
|
||||
"strings"
|
||||
|
||||
sc "github.com/kairos-io/kairos/pkg/config/schemas"
|
||||
sc "github.com/kairos-io/kairos/v2/pkg/config/schemas"
|
||||
)
|
||||
|
||||
// JSONSchema builds a JSON Schema based on the Root Schema and the given version
|
||||
|
@@ -6,7 +6,7 @@ import (
|
||||
"path/filepath"
|
||||
"strings"
|
||||
|
||||
. "github.com/kairos-io/kairos/internal/agent"
|
||||
. "github.com/kairos-io/kairos/v2/internal/agent"
|
||||
|
||||
. "github.com/onsi/ginkgo/v2"
|
||||
. "github.com/onsi/gomega"
|
||||
|
@@ -4,7 +4,7 @@ import (
|
||||
"fmt"
|
||||
"os"
|
||||
|
||||
"github.com/kairos-io/kairos/internal/kairos"
|
||||
"github.com/kairos-io/kairos/v2/internal/kairos"
|
||||
|
||||
"github.com/kairos-io/kairos-sdk/utils"
|
||||
"github.com/pterm/pterm"
|
||||
|
@@ -13,8 +13,8 @@ import (
|
||||
"text/template"
|
||||
"time"
|
||||
|
||||
"github.com/kairos-io/kairos/internal/agent"
|
||||
"github.com/kairos-io/kairos/pkg/config"
|
||||
"github.com/kairos-io/kairos/v2/internal/agent"
|
||||
"github.com/kairos-io/kairos/v2/pkg/config"
|
||||
"github.com/labstack/echo/v4"
|
||||
process "github.com/mudler/go-processmanager"
|
||||
"github.com/nxadm/tail"
|
||||
|
Reference in New Issue
Block a user