Compare commits

..
4 Commits
Author SHA1 Message Date
Zach Rice 7b48cadf6d fixing version loading in makefile 2020-01-22 20:42:14 -05:00
Zachary Rice 6eab8a7a0a Update README.md 2020-01-22 20:00:27 -05:00
Zachary Rice c6d14e5b7d Merge pull request #323 from zricethezav/bug/fix-go-module
fixing modules, adding v3 in path
2020-01-22 18:10:23 -05:00
zricethezav ce95cafd54 fixing modules, adding v3 in path 2020-01-22 10:21:00 -05:00
18 changed files with 36 additions and 35 deletions

No files matched your search

+1
View File
@@ -7,6 +7,7 @@
*.DS_STORE *.DS_STORE
*.idea *.idea
gitleaks gitleaks
build
# Test binary # Test binary
*.out *.out
+2 -2
View File
@@ -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/version.Version=$(VERSION)" LDFLAGS=-ldflags "-X=github.com/zricethezav/gitleaks/v3/version.Version=$(VERSION)"
_LDFLAGS="github.com/zricethezav/gitleaks/version.Version=$(VERSION)" _LDFLAGS="github.com/zricethezav/gitleaks/v3/version.Version=$(VERSION)"
COVER=--cover --coverprofile=cover.out COVER=--cover --coverprofile=cover.out
test-cover: test-cover:
+2 -2
View File
@@ -41,9 +41,9 @@ docker pull zricethezav/gitleaks
``` ```
#### Go #### Go
Ensure `GO111MODULE=on` is set as an env var
```bash ```bash
go get -u github.com/zricethezav/gitleaks go get github.com/zricethezav/gitleaks/v3@latest
``` ```
## Usage ## Usage
+1 -1
View File
@@ -5,7 +5,7 @@ import (
"io/ioutil" "io/ioutil"
"path" "path"
"github.com/zricethezav/gitleaks/manager" "github.com/zricethezav/gitleaks/v3/manager"
log "github.com/sirupsen/logrus" log "github.com/sirupsen/logrus"
) )
+3 -3
View File
@@ -10,9 +10,9 @@ import (
"sort" "sort"
"testing" "testing"
"github.com/zricethezav/gitleaks/config" "github.com/zricethezav/gitleaks/v3/config"
"github.com/zricethezav/gitleaks/manager" "github.com/zricethezav/gitleaks/v3/manager"
"github.com/zricethezav/gitleaks/options" "github.com/zricethezav/gitleaks/v3/options"
"github.com/sergi/go-diff/diffmatchpatch" "github.com/sergi/go-diff/diffmatchpatch"
) )
+2 -2
View File
@@ -12,8 +12,8 @@ import (
"sync" "sync"
"time" "time"
"github.com/zricethezav/gitleaks/config" "github.com/zricethezav/gitleaks/v3/config"
"github.com/zricethezav/gitleaks/manager" "github.com/zricethezav/gitleaks/v3/manager"
"github.com/BurntSushi/toml" "github.com/BurntSushi/toml"
"github.com/sergi/go-diff/diffmatchpatch" "github.com/sergi/go-diff/diffmatchpatch"
+2 -2
View File
@@ -8,8 +8,8 @@ import (
"strings" "strings"
"time" "time"
"github.com/zricethezav/gitleaks/config" "github.com/zricethezav/gitleaks/v3/config"
"github.com/zricethezav/gitleaks/manager" "github.com/zricethezav/gitleaks/v3/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
View File
@@ -6,7 +6,7 @@ import (
"strconv" "strconv"
"strings" "strings"
"github.com/zricethezav/gitleaks/options" "github.com/zricethezav/gitleaks/v3/options"
"github.com/BurntSushi/toml" "github.com/BurntSushi/toml"
) )
+1 -1
View File
@@ -2,7 +2,7 @@ package config
import ( import (
"fmt" "fmt"
"github.com/zricethezav/gitleaks/options" "github.com/zricethezav/gitleaks/v3/options"
"regexp" "regexp"
"testing" "testing"
) )
+1 -1
View File
@@ -1,4 +1,4 @@
module github.com/zricethezav/gitleaks module github.com/zricethezav/gitleaks/v3
go 1.13 go 1.13
+3 -3
View File
@@ -6,9 +6,9 @@ import (
"strings" "strings"
"sync" "sync"
"github.com/zricethezav/gitleaks/audit" "github.com/zricethezav/gitleaks/v3/audit"
"github.com/zricethezav/gitleaks/manager" "github.com/zricethezav/gitleaks/v3/manager"
"github.com/zricethezav/gitleaks/options" "github.com/zricethezav/gitleaks/v3/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
View File
@@ -4,9 +4,9 @@ import (
"context" "context"
"sync" "sync"
"github.com/zricethezav/gitleaks/audit" "github.com/zricethezav/gitleaks/v3/audit"
"github.com/zricethezav/gitleaks/manager" "github.com/zricethezav/gitleaks/v3/manager"
"github.com/zricethezav/gitleaks/options" "github.com/zricethezav/gitleaks/v3/options"
log "github.com/sirupsen/logrus" log "github.com/sirupsen/logrus"
"github.com/xanzy/go-gitlab" "github.com/xanzy/go-gitlab"
+1 -1
View File
@@ -1,7 +1,7 @@
package hosts package hosts
import ( import (
"github.com/zricethezav/gitleaks/manager" "github.com/zricethezav/gitleaks/v3/manager"
"strings" "strings"
) )
+3 -3
View File
@@ -3,9 +3,9 @@ package hosts
import ( import (
"flag" "flag"
"fmt" "fmt"
"github.com/zricethezav/gitleaks/config" "github.com/zricethezav/gitleaks/v3/config"
"github.com/zricethezav/gitleaks/manager" "github.com/zricethezav/gitleaks/v3/manager"
"github.com/zricethezav/gitleaks/options" "github.com/zricethezav/gitleaks/v3/options"
"os" "os"
"testing" "testing"
) )
+5 -5
View File
@@ -5,11 +5,11 @@ import (
"os" "os"
"time" "time"
"github.com/zricethezav/gitleaks/audit" "github.com/zricethezav/gitleaks/v3/audit"
"github.com/zricethezav/gitleaks/config" "github.com/zricethezav/gitleaks/v3/config"
"github.com/zricethezav/gitleaks/hosts" "github.com/zricethezav/gitleaks/v3/hosts"
"github.com/zricethezav/gitleaks/manager" "github.com/zricethezav/gitleaks/v3/manager"
"github.com/zricethezav/gitleaks/options" "github.com/zricethezav/gitleaks/v3/options"
"github.com/hako/durafmt" "github.com/hako/durafmt"
log "github.com/sirupsen/logrus" log "github.com/sirupsen/logrus"
+2 -2
View File
@@ -13,8 +13,8 @@ import (
"text/tabwriter" "text/tabwriter"
"time" "time"
"github.com/zricethezav/gitleaks/config" "github.com/zricethezav/gitleaks/v3/config"
"github.com/zricethezav/gitleaks/options" "github.com/zricethezav/gitleaks/v3/options"
"github.com/hako/durafmt" "github.com/hako/durafmt"
"github.com/mattn/go-colorable" "github.com/mattn/go-colorable"
+2 -2
View File
@@ -3,8 +3,8 @@ package manager
import ( import (
"crypto/rand" "crypto/rand"
"fmt" "fmt"
"github.com/zricethezav/gitleaks/config" "github.com/zricethezav/gitleaks/v3/config"
"github.com/zricethezav/gitleaks/options" "github.com/zricethezav/gitleaks/v3/options"
"io" "io"
"testing" "testing"
) )
+1 -1
View File
@@ -7,7 +7,7 @@ import (
"os/user" "os/user"
"strings" "strings"
"github.com/zricethezav/gitleaks/version" "github.com/zricethezav/gitleaks/v3/version"
"github.com/jessevdk/go-flags" "github.com/jessevdk/go-flags"
log "github.com/sirupsen/logrus" log "github.com/sirupsen/logrus"