diff options
author | John McCrae <john.mccrae@progress.com> | 2022-10-30 05:58:48 +0600 |
---|---|---|
committer | John McCrae <john.mccrae@progress.com> | 2022-10-30 05:58:48 +0600 |
commit | f19091e76396295262a310766faebbf07bbc12b8 (patch) | |
tree | 41ddeaa5acd7d2b7c3cee7662195451e1cdbad1c | |
parent | d794443f47abe3a7fa8cb0d4dfe4156644f1eac0 (diff) | |
download | chef-f19091e76396295262a310766faebbf07bbc12b8.tar.gz |
Why is git archive failing? Replacing it with Compress-Archive
Signed-off-by: John McCrae <john.mccrae@progress.com>
-rw-r--r-- | habitat/plan.ps1 | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/habitat/plan.ps1 b/habitat/plan.ps1 index 0f51a61653..aa8e24044c 100644 --- a/habitat/plan.ps1 +++ b/habitat/plan.ps1 @@ -48,7 +48,7 @@ function Invoke-Download() { try { Push-Location (Resolve-Path "$PLAN_CONTEXT/../").Path # [System.Diagnostics.Process]::Start("git archive --format=zip --output=${HAB_CACHE_SRC_PATH}\\${pkg_filename} HEAD") - Invoke-Expression -Command "git archive --format=zip --output=${HAB_CACHE_SRC_PATH}\\${pkg_filename} HEAD" + Invoke-Expression -Command "git archive --format=zip --output=${HAB_CACHE_SRC_PATH}\\${pkg_filename} HEAD --verbose" Start-Sleep -Seconds 30 # getting an error about the archive being in use, adding the sleep to let other handles on the file finish. if (-not $?) { throw "unable to create archive of source" } |