flyingcircusio / batou_ext

A library of batou extensions.
Other
4 stars 1 forks source link

[FC-40974] SingleUntar: touch `self.target` on update #195

Closed Ma27 closed 2 weeks ago

Ma27 commented 4 weeks ago

Consider the following use-case:

Now, using SingleUntar isn't convergent in this case because it tries to unpack the assets on each deploy: this is because the mtime of self.target isn't affected by the unpack since the files are unpacked into a directory inside self.target.

The self.touch solves the issue by updating the mtime of the target.

This is not expected to affect the "traditional" use-case of SingleUntar where a new unpack creates a new directory called self.target.