]> Cypherpunks repositories - gostls13.git/commit
cmd/dist: do not rewrite files that already have the correct content
authorRuss Cox <rsc@golang.org>
Mon, 20 Apr 2015 15:41:31 +0000 (11:41 -0400)
committerRuss Cox <rsc@golang.org>
Wed, 3 Jun 2015 20:39:35 +0000 (20:39 +0000)
commite346adf5685b5c310ecdd6b121591ecb0ea91ea0
treee206e3a1e287c399418c84a20fff4aa6b6e87cfa
parent85069e9e9bf72d9152533434bc7f5aa7be8175dd
cmd/dist: do not rewrite files that already have the correct content

In particular, this avoids moving the mtime on runtime/zversion.go
forward unless the file is out of date. In turn, this makes cross compiles
that run dist multiple times coexist nicely.

(It's no longer necessary to run dist multiple times to set up cross compiles,
but people still might, and it's easy to fix regardless.)

Fixes #4749.

Change-Id: Id430525f168f106bc4b821ca74b2ca498a748f14
Reviewed-on: https://go-review.googlesource.com/9152
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
src/cmd/dist/build.go
src/cmd/dist/buildruntime.go
src/cmd/dist/buildtool.go
src/cmd/dist/util.go