• Robert Griesemer's avatar
    cmd/compile: fail gracefully on export format skew · 5a6f9735
    Robert Griesemer authored
    Import errors due to unexpected format are virtually
    always due to version skew. Don't panic but report a
    good error message (incl. hint that the imported package
    needs to be reinstalled) if not in debugFormat mode.
    
    Recognize export data format version and store it so
    it can be used to automatically handle minor version
    differences. We did this before, but not very well.
    
    No export data format changes.
    
    Manually tested with corrupted export data.
    
    For #16881.
    
    Change-Id: I53ba98ef747b1c81033a914bb61ee52991f35a90
    Reviewed-on: https://go-review.googlesource.com/27814Reviewed-by: 's avatarMatthew Dempsky <mdempsky@google.com>
    5a6f9735
Name
Last commit
Last update
.github Loading commit data...
api Loading commit data...
doc Loading commit data...
lib/time Loading commit data...
misc Loading commit data...
src Loading commit data...
test Loading commit data...
.gitattributes Loading commit data...
.gitignore Loading commit data...
AUTHORS Loading commit data...
CONTRIBUTING.md Loading commit data...
CONTRIBUTORS Loading commit data...
LICENSE Loading commit data...
PATENTS Loading commit data...
README.md Loading commit data...
favicon.ico Loading commit data...
robots.txt Loading commit data...