4
0
Эх сурвалжийг харах

forgot to bump in code... (#347)

Zachary Rice 6 жил өмнө
parent
commit
8b3ce2cb1e

+ 2 - 2
Makefile

@@ -2,8 +2,8 @@
 
 
 VERSION := `git fetch --tags && git tag | sort -V | tail -1`
 VERSION := `git fetch --tags && git tag | sort -V | tail -1`
 PKG=github.com/zricethezav/gitleaks
 PKG=github.com/zricethezav/gitleaks
-LDFLAGS=-ldflags "-X=github.com/zricethezav/gitleaks/v3/version.Version=$(VERSION)"
-_LDFLAGS="github.com/zricethezav/gitleaks/v3/version.Version=$(VERSION)"
+LDFLAGS=-ldflags "-X=github.com/zricethezav/gitleaks/v4/version.Version=$(VERSION)"
+_LDFLAGS="github.com/zricethezav/gitleaks/v4/version.Version=$(VERSION)"
 COVER=--cover --coverprofile=cover.out
 COVER=--cover --coverprofile=cover.out
 
 
 test-cover:
 test-cover:

+ 1 - 1
README.md

@@ -43,7 +43,7 @@ docker pull zricethezav/gitleaks
 #### Go
 #### Go
 Ensure `GO111MODULE=on` is set as an env var
 Ensure `GO111MODULE=on` is set as an env var
 ```bash
 ```bash
-go get github.com/zricethezav/gitleaks/v3@latest
+go get github.com/zricethezav/gitleaks/v4@latest
 ```
 ```
 
 
 ## Usage
 ## Usage

+ 1 - 1
audit/audit.go

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

+ 3 - 3
audit/audit_test.go

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

+ 2 - 2
audit/repo.go

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

+ 2 - 2
audit/util.go

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

+ 1 - 1
config/config.go

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

+ 1 - 1
config/config_test.go

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

+ 1 - 1
go.mod

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

+ 3 - 3
hosts/github.go

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

+ 3 - 3
hosts/gitlab.go

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

+ 1 - 1
hosts/host.go

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

+ 3 - 3
hosts/hosts_test.go

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

+ 5 - 5
main.go

@@ -5,11 +5,11 @@ import (
 	"os"
 	"os"
 	"time"
 	"time"
 
 
-	"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/zricethezav/gitleaks/v4/audit"
+	"github.com/zricethezav/gitleaks/v4/config"
+	"github.com/zricethezav/gitleaks/v4/hosts"
+	"github.com/zricethezav/gitleaks/v4/manager"
+	"github.com/zricethezav/gitleaks/v4/options"
 
 
 	"github.com/hako/durafmt"
 	"github.com/hako/durafmt"
 	log "github.com/sirupsen/logrus"
 	log "github.com/sirupsen/logrus"

+ 2 - 2
manager/manager.go

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

+ 2 - 2
manager/manager_test.go

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

+ 1 - 1
options/options.go

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