Skip to content

Commit

Permalink
chore: Add v2 major version suffix to module importpath (#288)
Browse files Browse the repository at this point in the history
This has the UX benefit of making korb go-installable.
  • Loading branch information
qjcg authored Aug 8, 2024
1 parent b682c02 commit f915297
Show file tree
Hide file tree
Showing 9 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ import (
"path/filepath"
"time"

"beryju.org/korb/pkg/config"
"beryju.org/korb/pkg/migrator"
"beryju.org/korb/v2/pkg/config"
"beryju.org/korb/v2/pkg/migrator"
log "github.com/sirupsen/logrus"

"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 beryju.org/korb
module beryju.org/korb/v2

go 1.22.0

Expand Down
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package main

import "beryju.org/korb/cmd"
import "beryju.org/korb/v2/cmd"

func main() {
cmd.Execute()
Expand Down
2 changes: 1 addition & 1 deletion pkg/migrator/migrator.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package migrator
import (
"time"

"beryju.org/korb/pkg/strategies"
"beryju.org/korb/v2/pkg/strategies"
log "github.com/sirupsen/logrus"

"k8s.io/client-go/kubernetes"
Expand Down
2 changes: 1 addition & 1 deletion pkg/migrator/validate.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package migrator
import (
"context"

"beryju.org/korb/pkg/strategies"
"beryju.org/korb/v2/pkg/strategies"
v1 "k8s.io/api/core/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
)
Expand Down
2 changes: 1 addition & 1 deletion pkg/mover/mover.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"io"
"os"

"beryju.org/korb/pkg/config"
"beryju.org/korb/v2/pkg/config"
"github.com/goware/prefixer"
log "github.com/sirupsen/logrus"

Expand Down
2 changes: 1 addition & 1 deletion pkg/strategies/copyTwiceName.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"fmt"
"time"

"beryju.org/korb/pkg/mover"
"beryju.org/korb/v2/pkg/mover"
v1 "k8s.io/api/core/v1"
"k8s.io/apimachinery/pkg/api/errors"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
Expand Down
2 changes: 1 addition & 1 deletion pkg/strategies/export.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"io"
"os"

"beryju.org/korb/pkg/mover"
"beryju.org/korb/v2/pkg/mover"
"github.com/schollz/progressbar/v3"
v1 "k8s.io/api/core/v1"
"k8s.io/client-go/rest"
Expand Down
2 changes: 1 addition & 1 deletion pkg/strategies/import.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"fmt"
"os"

"beryju.org/korb/pkg/mover"
"beryju.org/korb/v2/pkg/mover"
v1 "k8s.io/api/core/v1"
"k8s.io/client-go/rest"
)
Expand Down

0 comments on commit f915297

Please sign in to comment.