]> Cypherpunks repositories - gostls13.git/commit
cmd/vet: make vetx output deterministic
authorIan Lance Taylor <iant@golang.org>
Mon, 2 Jul 2018 23:45:49 +0000 (16:45 -0700)
committerIan Lance Taylor <iant@golang.org>
Tue, 3 Jul 2018 00:42:50 +0000 (00:42 +0000)
commit4ba55273713bebfbfe0bed9ce196e845c0c69567
treeaddeab55bdf0551191ae66fbacf39fcbf058807b
parent3f54e8537aa31cf3dbcf27d0c3033b17756d093a
cmd/vet: make vetx output deterministic

The vetx output file is a build output, and as such should be
deterministic. This CL changes it to not depend on map iteration order.

This avoids a pointless GODEBUG=gocacheverify=1 failure.

Updates #25666

Change-Id: Ic132bad134cb10938275f883c2c68432cb7c4409
Reviewed-on: https://go-review.googlesource.com/121941
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Rob Pike <r@golang.org>
src/cmd/vet/main.go
src/cmd/vet/print.go