This means that all versions of fsnotify will be replaced with the one specified, which is really based on v1.4.7, further complicating things the go.mod in github.com/adriansr/fsnotify contains the following:
Which means you always get v1.5.1, even if you try to specify the exact version that adriansr/fsnotify provides. This is a complicated mess. And means that any code that uses features that are only found in 1.6.0 won't be able to find the code.
Propose the following fix.
Elastic should create a new repo for a fsnotify fork, and merge in the 2 changes that are in the adriansr fork
Elastic should release a 1.6.0 version and 1.7.0 version of fsnotify with the 2 changes
Elastic should work on getting these changes in upstream so we don't have to maintain a fork
Currently go.mod claims that beats requires fsnotify 1.6.0
This is because containerd v1.7.20 requires that version. However, farther down in go.mod fsnotify is replaced with
This means that all versions of fsnotify will be replaced with the one specified, which is really based on v1.4.7, further complicating things the go.mod in github.com/adriansr/fsnotify contains the following:
Which means you always get v1.5.1, even if you try to specify the exact version that adriansr/fsnotify provides. This is a complicated mess. And means that any code that uses features that are only found in 1.6.0 won't be able to find the code.
Propose the following fix.