]> Cypherpunks repositories - gostls13.git/commit
internal/trace: expose the go version read by the reader
authorCarlos Amedee <carlos@golang.org>
Fri, 30 May 2025 20:05:04 +0000 (16:05 -0400)
committerGopher Robot <gobot@golang.org>
Fri, 30 May 2025 21:51:22 +0000 (14:51 -0700)
commita8e99ab19cbf8568cb452b899d0ed3f0d65848c5
tree0f8b42019346a52dbc05268d75600a66debbcb6b
parent68b51e99f9ed6d15d1ea53c671f60c55979c4a40
internal/trace: expose the go version read by the reader

This change adds a function to expose the version set by the trace
reader after reading the trace header (in tests). The trace validator
needs to be able to determine what version of the trace it needs to
validate against. Clock snapshot checks have been disabled for
Windows and WASM.

For #63185

Change-Id: Ia3d63e6ed7a5ecd87e63292b84cc417d982aaa5a
Reviewed-on: https://go-review.googlesource.com/c/go/+/677695
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Auto-Submit: Carlos Amedee <carlos@golang.org>
Reviewed-by: Michael Knyszek <mknyszek@google.com>
src/internal/trace/export_reader_test.go [new file with mode: 0644]
src/internal/trace/reader_test.go