bitwalker / distillery

Simplify deployments in Elixir with OTP releases!
MIT License
2.96k stars 396 forks source link

Check modified time when reusing tmp dir #659

Open s417-lama opened 5 years ago

s417-lama commented 5 years ago

I recommend that an executable file check its modified time and that of tmp dir, so that old tmp dir is not be used if the executable file is newer than tmp dir.

Consider the case below,

In this case, any modifications are not reflected to the executable files. I think it is an unexpected behavior, especially for new users.

bitwalker commented 5 years ago

Seems like a good change to make, I'm happy to merge a PR for that, but I won't have time to get to it and test it myself for awhile unfortunately.