Closed neilotoole closed 7 months ago
Ohhhh yikes! Thanks for filing an issue and providing a reproducible example.
I'll take a look at this in the next few days. Need to refresh on what #81 was trying to solve and the implementation.
@mfridman Any joy on resolving the panic?
Sorry, haven't had a chance to sit down and resolve this (yet). Been on the road from gRPC conf to GopherCon so it kind of slipped.
I haven't forgotten and do plan to push a fix.
@mfridman No worries, I hope the confs were fun. Didn't mean to hassle you, but this is what you get for creating such a useful tool 🤓
@mfridman FYI, last week I experienced this panic again (on v0.13.1
) on a client's private repo and had to revert, so the issue is not restricted to just the example repo I provided.
Thanks for the reminder, let me take a look real quick.
Alright, I think https://github.com/mfridman/tparse/pull/104 should fix this issue. The slice of packages passed to findCommonPackagePrefix
function had no deterministic order, and finding a common package prefix was failing if a previously seen package had a longer name.
@neilotoole give it a go when you have a chance.
go install github.com/mfridman/tparse@d11b5c57
I'll cut a proper release sometime this week.
@mfridman I can confirm that the issue is resolved for me on d11b5c57
. Many thanks!
tparse
panics withindex out of range
inv0.12.1
andv0.13.1
. It does not panic inv0.11.1
. I have only verified this behavior ongo1.21.1 darwin/arm64
.Steps to reproduce