We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
As reported here by @ploxiln colima only seems to forward ATTRIB events, even when actually modifying files.
ATTRIB
See this log:
root@843c34dbbfff:/container# inotifywait -m . Setting up watches. Watches established. ./ ATTRIB main.go ./ ATTRIB main.go
I have a file watcher utility that ignores these and only recompiles on modify events, so it would be nice if this could be addressed.
colima version && limactl --version && qemu-img --version colima version 0.8.1 git commit: 96598cc5b64e5e9e1e64891642b91edc8ac49d16 runtime: docker arch: aarch64 client: v27.4.1 server: v27.4.0 limactl version 1.0.3 zsh: command not found: qemu-img
(I do not use qemu but vz and rosetta)
colima status
colima status INFO[0000] colima is running using macOS Virtualization.Framework INFO[0000] arch: aarch64 INFO[0000] runtime: docker INFO[0000] mountType: virtiofs INFO[0000] socket: unix:///Users/pvansanten/.colima/default/docker.sock
inotifywait -m -r .
touch test && echo hello >> test
inotifywait -m -r . Setting up watches. Beware: since -r was given, this may take a while! Watches established. ./ ATTRIB test
I expect the container inotifywait command to issue 2 events:
I do not expect an attribute event
No response
The text was updated successfully, but these errors were encountered:
I'm considering switching to Colima and encountered the same issue with ATTRIB/CHMOD in environment like the one described above.
Sorry, something went wrong.
After taking a peek at the code, I see that we are replicating the events by doing a chmod call in the VM OS:
https://github.com/abiosoft/colima/blob/main/daemon/process/inotify/events.go#L104
Maybe it would work better if we instead used this command instead?
echo "" >> {filepath}
Which triggers the following events on my local machine:
inotifywait -m . ./ OPEN file.txt ./ MODIFY file.txt ./ CLOSE_WRITE,CLOSE file.txt
Of course it makes sense to do something similar written in native go, like issuing a file.Write() with an empty byte buffer.
file.Write()
No branches or pull requests
Description
As reported here by @ploxiln colima only seems to forward
ATTRIB
events, even when actually modifying files.See this log:
I have a file watcher utility that ignores these and only recompiles on modify events, so it would be nice if this could be addressed.
Version
(I do not use qemu but vz and rosetta)
Operating System
Output of
colima status
Reproduction Steps
inotifywait -m -r .
touch test && echo hello >> test
Expected behaviour
I expect the container inotifywait command to issue 2 events:
I do not expect an attribute event
Additional context
No response
The text was updated successfully, but these errors were encountered: