OctopusDeploy / OctopusClients

| Public | Octopus.Client for commanding Octopus servers

Home Page:https://octopus.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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?

I use the VSTS task but the error is also present in the last executable version.

I cloned the project to catch the issue with the debugger.

octopackissue

This will be fixed in version 4.32.1, which should go out in the next few days.