Переглянути джерело

fixing modules, adding v3 in path

zricethezav 6 роки тому
батько
коміт
ce95cafd54

+ 1 - 0
.gitignore

@@ -7,6 +7,7 @@
 *.DS_STORE
 *.idea
 gitleaks
+build
 
 # Test binary
 *.out

+ 1 - 1
audit/audit.go

@@ -5,7 +5,7 @@ import (
 	"io/ioutil"
 	"path"
 
-	"github.com/zricethezav/gitleaks/manager"
+	"github.com/zricethezav/gitleaks/v3/manager"
 
 	log "github.com/sirupsen/logrus"
 )

+ 3 - 3
audit/audit_test.go

@@ -10,9 +10,9 @@ import (
 	"sort"
 	"testing"
 
-	"github.com/zricethezav/gitleaks/config"
-	"github.com/zricethezav/gitleaks/manager"
-	"github.com/zricethezav/gitleaks/options"
+	"github.com/zricethezav/gitleaks/v3/config"
+	"github.com/zricethezav/gitleaks/v3/manager"
+	"github.com/zricethezav/gitleaks/v3/options"
 
 	"github.com/sergi/go-diff/diffmatchpatch"
 )

+ 2 - 2
audit/repo.go

@@ -12,8 +12,8 @@ import (
 	"sync"
 	"time"
 
-	"github.com/zricethezav/gitleaks/config"
-	"github.com/zricethezav/gitleaks/manager"
+	"github.com/zricethezav/gitleaks/v3/config"
+	"github.com/zricethezav/gitleaks/v3/manager"
 
 	"github.com/BurntSushi/toml"
 	"github.com/sergi/go-diff/diffmatchpatch"

+ 2 - 2
audit/util.go

@@ -8,8 +8,8 @@ import (
 	"strings"
 	"time"
 
-	"github.com/zricethezav/gitleaks/config"
-	"github.com/zricethezav/gitleaks/manager"
+	"github.com/zricethezav/gitleaks/v3/config"
+	"github.com/zricethezav/gitleaks/v3/manager"
 
 	log "github.com/sirupsen/logrus"
 	"gopkg.in/src-d/go-git.v4"

+ 1 - 1
config/config.go

@@ -6,7 +6,7 @@ import (
 	"strconv"
 	"strings"
 
-	"github.com/zricethezav/gitleaks/options"
+	"github.com/zricethezav/gitleaks/v3/options"
 
 	"github.com/BurntSushi/toml"
 )

+ 1 - 1
config/config_test.go

@@ -2,7 +2,7 @@ package config
 
 import (
 	"fmt"
-	"github.com/zricethezav/gitleaks/options"
+	"github.com/zricethezav/gitleaks/v3/options"
 	"regexp"
 	"testing"
 )

+ 1 - 1
go.mod

@@ -1,4 +1,4 @@
-module github.com/zricethezav/gitleaks
+module github.com/zricethezav/gitleaks/v3
 
 go 1.13
 

+ 3 - 3
hosts/github.go

@@ -6,9 +6,9 @@ import (
 	"strings"
 	"sync"
 
-	"github.com/zricethezav/gitleaks/audit"
-	"github.com/zricethezav/gitleaks/manager"
-	"github.com/zricethezav/gitleaks/options"
+	"github.com/zricethezav/gitleaks/v3/audit"
+	"github.com/zricethezav/gitleaks/v3/manager"
+	"github.com/zricethezav/gitleaks/v3/options"
 
 	"github.com/google/go-github/github"
 	log "github.com/sirupsen/logrus"

+ 3 - 3
hosts/gitlab.go

@@ -4,9 +4,9 @@ import (
 	"context"
 	"sync"
 
-	"github.com/zricethezav/gitleaks/audit"
-	"github.com/zricethezav/gitleaks/manager"
-	"github.com/zricethezav/gitleaks/options"
+	"github.com/zricethezav/gitleaks/v3/audit"
+	"github.com/zricethezav/gitleaks/v3/manager"
+	"github.com/zricethezav/gitleaks/v3/options"
 
 	log "github.com/sirupsen/logrus"
 	"github.com/xanzy/go-gitlab"

+ 1 - 1
hosts/host.go

@@ -1,7 +1,7 @@
 package hosts
 
 import (
-	"github.com/zricethezav/gitleaks/manager"
+	"github.com/zricethezav/gitleaks/v3/manager"
 	"strings"
 )
 

+ 3 - 3
hosts/hosts_test.go

@@ -3,9 +3,9 @@ package hosts
 import (
 	"flag"
 	"fmt"
-	"github.com/zricethezav/gitleaks/config"
-	"github.com/zricethezav/gitleaks/manager"
-	"github.com/zricethezav/gitleaks/options"
+	"github.com/zricethezav/gitleaks/v3/config"
+	"github.com/zricethezav/gitleaks/v3/manager"
+	"github.com/zricethezav/gitleaks/v3/options"
 	"os"
 	"testing"
 )

+ 5 - 5
main.go

@@ -5,11 +5,11 @@ import (
 	"os"
 	"time"
 
-	"github.com/zricethezav/gitleaks/audit"
-	"github.com/zricethezav/gitleaks/config"
-	"github.com/zricethezav/gitleaks/hosts"
-	"github.com/zricethezav/gitleaks/manager"
-	"github.com/zricethezav/gitleaks/options"
+	"github.com/zricethezav/gitleaks/v3/audit"
+	"github.com/zricethezav/gitleaks/v3/config"
+	"github.com/zricethezav/gitleaks/v3/hosts"
+	"github.com/zricethezav/gitleaks/v3/manager"
+	"github.com/zricethezav/gitleaks/v3/options"
 
 	"github.com/hako/durafmt"
 	log "github.com/sirupsen/logrus"

+ 2 - 2
manager/manager.go

@@ -13,8 +13,8 @@ import (
 	"text/tabwriter"
 	"time"
 
-	"github.com/zricethezav/gitleaks/config"
-	"github.com/zricethezav/gitleaks/options"
+	"github.com/zricethezav/gitleaks/v3/config"
+	"github.com/zricethezav/gitleaks/v3/options"
 
 	"github.com/hako/durafmt"
 	"github.com/mattn/go-colorable"

+ 2 - 2
manager/manager_test.go

@@ -3,8 +3,8 @@ package manager
 import (
 	"crypto/rand"
 	"fmt"
-	"github.com/zricethezav/gitleaks/config"
-	"github.com/zricethezav/gitleaks/options"
+	"github.com/zricethezav/gitleaks/v3/config"
+	"github.com/zricethezav/gitleaks/v3/options"
 	"io"
 	"testing"
 )

+ 1 - 1
options/options.go

@@ -7,7 +7,7 @@ import (
 	"os/user"
 	"strings"
 
-	"github.com/zricethezav/gitleaks/version"
+	"github.com/zricethezav/gitleaks/v3/version"
 
 	"github.com/jessevdk/go-flags"
 	log "github.com/sirupsen/logrus"