mirror of
https://github.com/grdl/git-get.git
synced 2026-02-04 09:51:46 +00:00
Update incorrect module name - Go requires a domain-based path for public modules
This commit is contained in:
@@ -10,8 +10,8 @@ builds:
|
||||
binary: git-get
|
||||
ldflags:
|
||||
- -s -w
|
||||
- -X git-get/pkg/cfg.version={{.Version}}
|
||||
- -X git-get/pkg/cfg.commit={{.Commit}}
|
||||
- -X github.com/grdl/git-get/pkg/cfg.version={{.Version}}
|
||||
- -X github.com/grdl/git-get/pkg/cfg.commit={{.Commit}}
|
||||
goos:
|
||||
- linux
|
||||
- windows
|
||||
@@ -26,8 +26,8 @@ builds:
|
||||
binary: git-get
|
||||
ldflags:
|
||||
- -s -w
|
||||
- -X git-get/pkg/cfg.version={{.Version}}
|
||||
- -X git-get/pkg/cfg.commit={{.Commit}}
|
||||
- -X github.com/grdl/git-get/pkg/cfg.version={{.Version}}
|
||||
- -X github.com/grdl/git-get/pkg/cfg.commit={{.Commit}}
|
||||
goos:
|
||||
- darwin
|
||||
goarch:
|
||||
|
||||
@@ -2,11 +2,12 @@ package main
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"git-get/pkg"
|
||||
"git-get/pkg/cfg"
|
||||
"git-get/pkg/git"
|
||||
"os"
|
||||
|
||||
"github.com/grdl/git-get/pkg"
|
||||
"github.com/grdl/git-get/pkg/cfg"
|
||||
"github.com/grdl/git-get/pkg/git"
|
||||
|
||||
"github.com/spf13/cobra"
|
||||
"github.com/spf13/viper"
|
||||
)
|
||||
|
||||
@@ -2,12 +2,13 @@ package main
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"git-get/pkg"
|
||||
"git-get/pkg/cfg"
|
||||
"git-get/pkg/git"
|
||||
"os"
|
||||
"strings"
|
||||
|
||||
"github.com/grdl/git-get/pkg"
|
||||
"github.com/grdl/git-get/pkg/cfg"
|
||||
"github.com/grdl/git-get/pkg/git"
|
||||
|
||||
"github.com/spf13/cobra"
|
||||
"github.com/spf13/viper"
|
||||
)
|
||||
|
||||
@@ -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