pixie icon indicating copy to clipboard operation
pixie copied to clipboard

Go version detection fails to identify binaries built with Go 1.11 and earlier

Open ddelnano opened this issue 6 months ago • 0 comments

In https://github.com/pixie-io/pixie/pull/1605, we revamped Pixie's go version detection to align with Go's tooling. The previous implementation caused bugs such as https://github.com/pixie-io/pixie/issues/1300 and also didn't work for go 1.20 and later (https://github.com/pixie-io/pixie/issues/1318)

While working on https://github.com/pixie-io/pixie/pull/2207, I detected that the newer ReadGoBuildInfo logic only works on binaries built with Go 1.12 and later. This can be seen through running the ProductCatalogServiceTraceTest.Basic test case from the http2_trace_bpf_test.cc (source).

While the ReadGoBuildInfo logic is correct for recent binaries, we need to reinstate logic that works for older Go binaries.

ddelnano avatar Jun 05 '25 17:06 ddelnano