v1.9.0 (vs 1.8.0) macos change / test failure
Author: ldemaillyCreated Apr 6, 2025Updated Sep 11, 2025
Labelsbugkqueue
Describe the bug
I haven't fully debugged but if I update to 1.9.0 I get tests failure (note maybe the test is bad, I already had to disable some tests on macos CI but they used to pass fine on my local mac up to 1.8.0)
Code to Reproduce
on Mac
git clone https://github.com/fortio/dflag
cd dflag
make local-test # should all pass
go get github.com/fsnotify/fsnotify@main
make local-test # now failswith 1.8.0:
go test -race ./...
ok fortio.org/dflag 1.234s
ok fortio.org/dflag/configmap 12.110s
ok fortio.org/dflag/dynloglevel 1.585s
ok fortio.org/dflag/endpoint 1.842s
? fortio.org/dflag/examples/server_kube [no test files]File operations to reproduce
probably related to this part of the test
func (s *updaterTestSuite) linkDataDirTo(newDataDir string) {
copyCmd := exec.Command("ln", "-s", "-n", "-f",
path.Join(s.tempDir, "testdata", newDataDir),
path.Join(s.tempDir, "testdata", "..data"))
assert.NoError(s.T(), copyCmd.Run(), "relinking ..data in tempdir must not fail")
}Which operating system and version are you using?
MacOS 15.3.2 (24D81)
Which fsnotify version are you using?
1.9.0
Did you try the latest main branch?
Yes
Source: fsnotify/fsnotify