golang/go
View on GitHubx/review/git-codereview: when working on the Go repo, use its bin/gofmt if present
Open
#26,336 opened on Jul 11, 2018
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.