Skip to content

Commit

Permalink
fixing modules, adding v3 in path
Browse files Browse the repository at this point in the history
  • Loading branch information
zricethezav committed Jan 22, 2020
1 parent 4024fac commit ce95caf
Show file tree
Hide file tree
Showing 16 changed files with 32 additions and 31 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
*.DS_STORE
*.idea
gitleaks
build

# Test binary
*.out
2 changes: 1 addition & 1 deletion audit/audit.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"io/ioutil"
"path"

"github.com/zricethezav/gitleaks/manager"
"github.com/zricethezav/gitleaks/v3/manager"

log "github.com/sirupsen/logrus"
)
Expand Down
6 changes: 3 additions & 3 deletions audit/audit_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
)
Expand Down
4 changes: 2 additions & 2 deletions audit/repo.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
4 changes: 2 additions & 2 deletions audit/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"strconv"
"strings"

"github.com/zricethezav/gitleaks/options"
"github.com/zricethezav/gitleaks/v3/options"

"github.com/BurntSushi/toml"
)
Expand Down
2 changes: 1 addition & 1 deletion config/config_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package config

import (
"fmt"
"github.com/zricethezav/gitleaks/options"
"github.com/zricethezav/gitleaks/v3/options"
"regexp"
"testing"
)
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module github.com/zricethezav/gitleaks
module github.com/zricethezav/gitleaks/v3

go 1.13

Expand Down
6 changes: 3 additions & 3 deletions hosts/github.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
6 changes: 3 additions & 3 deletions hosts/gitlab.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion hosts/host.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package hosts

import (
"github.com/zricethezav/gitleaks/manager"
"github.com/zricethezav/gitleaks/v3/manager"
"strings"
)

Expand Down
6 changes: 3 additions & 3 deletions hosts/hosts_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
)
Expand Down
10 changes: 5 additions & 5 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
4 changes: 2 additions & 2 deletions manager/manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
4 changes: 2 additions & 2 deletions manager/manager_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
)
Expand Down
2 changes: 1 addition & 1 deletion options/options.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit ce95caf

Please sign in to comment.