From a69656e0e2d271df86336e3f498cf180de2be9c4 Mon Sep 17 00:00:00 2001 From: Robert Griesemer Date: Thu, 10 Nov 2016 16:18:58 -0800 Subject: [PATCH] go/gcimporter: update export data format version We already are compatible with the latest format. Update version. Tested against 1.6, 1.7, and tip. Fixes golang/go#17734. Change-Id: Ia167adf0ed1de371c348329513819fb9e8ca2628 Reviewed-on: https://go-review.googlesource.com/33113 Reviewed-by: Alan Donovan --- go/gcimporter15/bexport.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/go/gcimporter15/bexport.go b/go/gcimporter15/bexport.go index 539c7a425a0..af982aba3cb 100644 --- a/go/gcimporter15/bexport.go +++ b/go/gcimporter15/bexport.go @@ -39,7 +39,11 @@ const debugFormat = false // default: false const trace = false // default: false // Current export format version. Increase with each format change. -const exportVersion = 1 +// 3: added aliasTag and export of aliases +// 2: removed unused bool in ODCL export (compiler only) +// 1: header format change (more regular), export package for _ struct fields +// 0: Go1.7 encoding +const exportVersion = 3 // trackAllTypes enables cycle tracking for all types, not just named // types. The existing compiler invariants assume that unnamed types