golang/go

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

Open

#26,336 opened on 2018年7月11日

GitHub で見る
 (8 comments) (2 reactions) (0 assignees)Go (19,008 forks)batch import
NeedsFixhelp wanted

Repository metrics

Stars
 (133,883 stars)
PR merge metrics
 (30d に merged PR はありません)

説明

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.

コントリビューターガイド