Open yoks opened 5 months ago
What are you doing to reproduce debug.ReadBuildInfo()
failing? This panic is because parsing the Go module info really shouldn't fail and it's being used as the fallback for when you don't provide a service name.
Building it with Bazel. It does not inject BuildInfo as it breaks hermeticity of the builds (i will have diffrerent results on different machines), you can reproduce some of it using stamping. But it requires additonal configs, or patches (is what we doing).
I propose as you already can insert servicename, why not ignore BuildInfo
in this case?
This part panics if BuildInfo returns
nil
andserviceName
is provided:It skips
if
check and blows on eval ofbi.Main.Path
.