juergbi commented on issue #1819:
URL: https://github.com/apache/buildstream/issues/1819#issuecomment-4697850637

   We want to atomically update the file to minimize the risk of an incomplete 
file being left behind in case of a crash, or an incomplete file being accessed 
while the update is still in progress. `O_TRUNC` doesn't allow that, 
unfortunately.
   
   While some container setups may have such permission issues, it's definitely 
possible to set up a container where bst inside the container runs as the same 
user as the owner of the .bst files. Atomic file replacement by renaming a 
newly created file is widely done and nothing exotic. I thus consider this an 
issue in the container setup and not a bug in BuildStream, so I'm closing this.
   
   If you encounter this issue by following container setup instructions in the 
BuildStream website, please reopen this (or open a new issue) so that we can 
fix the instructions.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to