Skip to content

v1.0.3: Fix Unix/Darwin dirent parsing bugs

Compare
Choose a tag to compare
@charlievieth charlievieth released this 04 Apr 04:08
· 23 commits to master since this release

v1.0.3

commit 9cba5f4
Author: Charlie Vieth charlie.vieth@gmail.com
Date: Wed Apr 3 23:58:15 2024 -0400

fastwalk: add new dirent package for parsing Unix dirents

This commit updates the Dirent parsing logic to match what the go1.22
stdlib uses.

This is an attempt to fix FZF issue:
https://github.com/junegunn/fzf/issues/3706

commit 596420e
Author: Charlie Vieth charlie.vieth@gmail.com
Date: Wed Apr 3 23:39:05 2024 -0400

darwin: use pointer offsets to access dirent fields with getdirentries64

This fixes the "converted pointer straddles multiple allocations" errors
reported by the race-detector when using getdirentries64 on darwin by
changing the dirent parsing logic to match that of golang.org/x/sys/unix.