]> Cypherpunks repositories - gostls13.git/commit
cmd/buildid: fix rewrite algorithm
authorHiroshi Ioka <hirochachacha@gmail.com>
Tue, 19 Dec 2017 14:59:56 +0000 (23:59 +0900)
committerRuss Cox <rsc@golang.org>
Thu, 4 Jan 2018 16:56:51 +0000 (16:56 +0000)
commitafd090c0c07b86de1cdeb2415d3fc187709832ac
treed4f0e75478961ed96911c7343d256436f125f469
parente676dbbdaf20e00609ba4cddfd55619a1e530b21
cmd/buildid: fix rewrite algorithm

Update rewrite algorithm by coping code from
go/internal/work/buildid:updateBuildID.

Probably, this is not the best option. We could provide high-level API
in cmd/internal/buildid in the future.

Fixes #23181

Change-Id: I336a7c50426ab39bc9998b55c372af61a4fb21a7
Reviewed-on: https://go-review.googlesource.com/84735
Reviewed-by: Russ Cox <rsc@golang.org>
src/cmd/buildid/buildid.go
src/cmd/go/go_test.go
src/cmd/go/internal/work/buildid.go