Octo pack ArgumentOutOfRangeException
kvpt opened this issue · comments
Hi,
If a file contain an invalid LastWriteTime, the pack command fail with an ArgumentOutOfRange exception.
I encountered this issue with several node modules.
To create a file wich trigger this issue, you can execute this powershell command :
(New-Item OutOfRange.txt).LastWriteTime = Get-Date -Date "1970-1-1"
Octo Pack on this file fail.
Currently we have to use a powershell script step in your build before the octopus step to set the LastWriteTime on all file with invalid date.
Hi @kvpt, thanks for reporting the issue.
Can you attach the exact error that is reported when a file with an invalid LastWriteTime is encountered?
Also what version of OctoPack is your project using?
This will be fixed in version 4.32.1, which should go out in the next few days.