golang/go

x/review/git-codereview: when working on the Go repo, use its bin/gofmt if present

Open

#26,336 opened on Jul 11, 2018

View on GitHub
 (8 comments) (2 reactions) (0 assignees)Go (19,008 forks)batch import
NeedsFixhelp wanted

Repository metrics

Stars
 (133,883 stars)
PR merge metrics
 (No merged PRs in 30d)

Description

gofmt changed in Go 1.11, and git-codereview uses the gofmt from $PATH, so when that's the Go 1.10 version, it complains as git-codereview: gofmt needs to format these files (run 'git gofmt').

It should instead use the gofmt in GOROOT.

Contributor guide