recover on panic in patch generation, full filepath for report, version message if not built with LDFLAGS

This commit is contained in:
zach rice committed 2019-11-23 09:50:16 -05:00
1 parent b6f726654e
commit cfac551ab8
9 files changed
+80 -53

No files matched your search

+8 -6
View File
@@ -6,18 +6,20 @@ import (
"encoding/hex"
"encoding/json"
"fmt"
"github.com/hako/durafmt"
"github.com/mattn/go-colorable"
log "github.com/sirupsen/logrus"
"github.com/zricethezav/gitleaks/config"
"github.com/zricethezav/gitleaks/options"
"gopkg.in/src-d/go-git.v4"
"os"
"os/signal"
"runtime"
"sync"
"text/tabwriter"
"time"
"github.com/zricethezav/gitleaks/config"
"github.com/zricethezav/gitleaks/options"
"github.com/hako/durafmt"
"github.com/mattn/go-colorable"
log "github.com/sirupsen/logrus"
"gopkg.in/src-d/go-git.v4"
)
// Manager is a struct containing options and configs as well CloneOptions and CloneDir.