mirror of
https://github.com/grdl/git-get.git
synced 2026-03-22 18:05:07 +00:00
Update incorrect module name - Go requires a domain-based path for public modules
This commit is contained in:
@@ -3,8 +3,9 @@ package pkg
|
||||
import (
|
||||
"errors"
|
||||
"fmt"
|
||||
"git-get/pkg/git"
|
||||
"path/filepath"
|
||||
|
||||
"github.com/grdl/git-get/pkg/git"
|
||||
)
|
||||
|
||||
var ErrMissingRepoArg = errors.New("missing <REPO> argument or --dump flag")
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
package git
|
||||
|
||||
import (
|
||||
"git-get/pkg/run"
|
||||
"github.com/grdl/git-get/pkg/run"
|
||||
)
|
||||
|
||||
// ConfigGlobal represents a global gitconfig file.
|
||||
|
||||
@@ -1,9 +1,10 @@
|
||||
package git
|
||||
|
||||
import (
|
||||
"git-get/pkg/git/test"
|
||||
"git-get/pkg/run"
|
||||
"testing"
|
||||
|
||||
"github.com/grdl/git-get/pkg/git/test"
|
||||
"github.com/grdl/git-get/pkg/run"
|
||||
)
|
||||
|
||||
// cfgStub represents a gitconfig file but instead of using a global one, it creates a temporary git repo and uses its local gitconfig.
|
||||
|
||||
@@ -1,10 +1,11 @@
|
||||
package git
|
||||
|
||||
import (
|
||||
"git-get/pkg/git/test"
|
||||
"os"
|
||||
"testing"
|
||||
|
||||
"github.com/grdl/git-get/pkg/git/test"
|
||||
|
||||
"github.com/stretchr/testify/assert"
|
||||
)
|
||||
|
||||
|
||||
@@ -2,12 +2,13 @@ package git
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"git-get/pkg/run"
|
||||
"net/url"
|
||||
"os"
|
||||
"path/filepath"
|
||||
"strconv"
|
||||
"strings"
|
||||
|
||||
"github.com/grdl/git-get/pkg/run"
|
||||
)
|
||||
|
||||
const (
|
||||
|
||||
@@ -1,13 +1,14 @@
|
||||
package git
|
||||
|
||||
import (
|
||||
"git-get/pkg/git/test"
|
||||
"os"
|
||||
"path/filepath"
|
||||
"reflect"
|
||||
"strconv"
|
||||
"testing"
|
||||
|
||||
"github.com/grdl/git-get/pkg/git/test"
|
||||
|
||||
"github.com/stretchr/testify/assert"
|
||||
)
|
||||
|
||||
|
||||
@@ -3,11 +3,12 @@ package test
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"git-get/pkg/run"
|
||||
"os"
|
||||
"path/filepath"
|
||||
"runtime"
|
||||
"testing"
|
||||
|
||||
"github.com/grdl/git-get/pkg/run"
|
||||
)
|
||||
|
||||
// TempDir creates a temporary directory inside the parent dir.
|
||||
|
||||
@@ -3,10 +3,11 @@ package pkg
|
||||
import (
|
||||
"errors"
|
||||
"fmt"
|
||||
"git-get/pkg/cfg"
|
||||
"git-get/pkg/git"
|
||||
"git-get/pkg/out"
|
||||
"strings"
|
||||
|
||||
"github.com/grdl/git-get/pkg/cfg"
|
||||
"github.com/grdl/git-get/pkg/git"
|
||||
"github.com/grdl/git-get/pkg/out"
|
||||
)
|
||||
|
||||
var ErrInvalidOutput = errors.New("invalid output format")
|
||||
|
||||
@@ -1,9 +1,10 @@
|
||||
package pkg
|
||||
|
||||
import (
|
||||
"git-get/pkg/cfg"
|
||||
"testing"
|
||||
|
||||
"github.com/grdl/git-get/pkg/cfg"
|
||||
|
||||
"github.com/stretchr/testify/assert"
|
||||
"github.com/stretchr/testify/require"
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user