diff --git a/main.go b/main.go index fcb17047..bd61c8a3 100644 --- a/main.go +++ b/main.go @@ -957,7 +957,9 @@ func parseFiles(lpkg *listedPackage, dir string, paths []string) (files []*ast.F } var src any - if strings.HasSuffix(path, "internal/abi/type.go") { + + abiFileName := filepath.Join("internal", "abi", "type.go") + if strings.HasSuffix(path, abiFileName) { src, err = abiNamePatch(path) if err != nil { return nil, err