cmd/go: use RawToken to parse remote package metadata
CL 14315 broke the tests for parsing loosely formed remote package metadata. Switch the parsing to use RawToken to recover the previous behaviour that Token provided. It could be argued that the parser should be stricter, but as remote metadata has been readable with the parser for several years, it is safer to change the parser to continue to accept the samples provided in the test cases. Change-Id: I2a3ba1757d3cff53b1a1c4386276955bb46cf8cd Reviewed-on: https://go-review.googlesource.com/14482Reviewed-by: Minux Ma <minux@golang.org> Run-TryBot: Minux Ma <minux@golang.org> Reviewed-by: Andrew Gerrand <adg@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org>
Showing
Please register or sign in to comment