ndmitchell / rattle

Forward build system with speculation and caching
Other
102 stars 5 forks source link

should chmod be a write? #10

Open spall opened 5 years ago

spall commented 5 years ago

One thing I have been seeing while creating a Rattle build for vim is the pattern of creating a file or directory and then immediately setting permissions for it. Right now "chmod" doesn't register as 'write', but I think it should? I know it isn't modifying the actual file or directory but it is modifying metadata.

ndmitchell commented 5 years ago

There are a few things here. Chmod should probably register as a write. We should also probably record/cache the permission bits on files, so we store them correctly. After all that, chmod will probably never be useful as it causes a write/write conflict if you create a file and chmod it as separate commands. I imagine a lot of people will do create && chmod as one action to get over that