Skip to content
Merged
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions pkg/goformat/runner.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import (
"regexp"
"strings"

"github.com/rogpeppe/go-internal/diff"
rpdiff "github.com/rogpeppe/go-internal/diff"

"github.com/golangci/golangci-lint/v2/pkg/config"
"github.com/golangci/golangci-lint/v2/pkg/fsutils"
Expand All @@ -32,11 +32,11 @@ type Runner struct {
exitCode int
}

func NewRunner(log logutils.Log,
func NewRunner(logger logutils.Log,
metaFormatter *goformatters.MetaFormatter, matcher *processors.GeneratedFileMatcher,
opts RunnerOptions) *Runner {
return &Runner{
log: log,
log: logger,
matcher: matcher,
metaFormatter: metaFormatter,
opts: opts,
Expand Down Expand Up @@ -128,7 +128,7 @@ func (c *Runner) process(path string, stdout io.Writer, in io.Reader) error {
if c.opts.diff {
newName := filepath.ToSlash(path)
oldName := newName + ".orig"
_, err = stdout.Write(diff.Diff(oldName, input, newName, output))
_, err = stdout.Write(rpdiff.Diff(oldName, input, newName, output))
if err != nil {
return err
}
Expand Down
Loading
Loading