Skip to content

v1.0.5: add ToSlash option and replace getdirentries64 with readdir_r on macOS

Compare
Choose a tag to compare
@charlievieth charlievieth released this 03 Jul 06:17
· 16 commits to master since this release

v1.0.5

commit 0446dfe
Author: Charlie Vieth [email protected]
Date: Wed Jul 3 01:21:34 2024 -0400

fastwalk: add ToSlash option for enforcing forward-slash paths

This commit adds the Config.ToSlash option which forces paths to be
joined with a forward-slash instead of the default OS path separator.
This mostly applies to Go binaries that are compiled for Windows but
run under the Windows Subsystem for Linux (WSL) so this commit also
adds a helper function DefaultToSlash which detects if we're a Windows
exe running in WSL.

commit 22a282e (master)
Author: Charlie Vieth [email protected]
Date: Tue Jul 2 15:00:22 2024 -0400

mod: update go version to 1.20

commit d4d0d43
Author: Charlie Vieth [email protected]
Date: Sat Jun 29 15:36:06 2024 -0400

dirent: handle nil DirEntry in StatDirEntry

commit ca81468
Author: Charlie Vieth [email protected]
Date: Tue Jul 2 14:22:14 2024 -0400

gh: test on macos arm64

commit b2d5e56
Author: Charlie Vieth [email protected]
Date: Tue Jul 2 14:12:03 2024 -0400

darwin: cleanup syscall code and use a fixed buffer for opendir

Remove unused syscall code and use a fixed buffer for opendir which
saves us an alloc.

commit e515b65
Author: Charlie Vieth [email protected]
Date: Sat Jun 22 01:10:08 2024 -0400

darwin: replace getdirentries64 with readdir_r

The performance benefit of getdirentries64 was negligible to
non-existent and added a huge support burden code wise.