diff options
author | John McCrae <john.mccrae@progress.com> | 2022-10-30 09:28:38 +0600 |
---|---|---|
committer | John McCrae <john.mccrae@progress.com> | 2022-10-30 09:28:38 +0600 |
commit | 4647f984862d1fbd44625d459789ab33b95fdadb (patch) | |
tree | c9f54ff983bfb9e1c3a935fb66e19c1909d53baf | |
parent | c1e0cae9d90930cb1461960001b3b4650ee9670b (diff) | |
download | chef-4647f984862d1fbd44625d459789ab33b95fdadb.tar.gz |
Git is loaded now but the build fails right after that.
Signed-off-by: John McCrae <john.mccrae@progress.com>
-rw-r--r-- | habitat/plan.ps1 | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/habitat/plan.ps1 b/habitat/plan.ps1 index 813e2ee6f6..fc5cb576bc 100644 --- a/habitat/plan.ps1 +++ b/habitat/plan.ps1 @@ -52,21 +52,21 @@ function Invoke-Download() { choco install gh -y choco install git -y $env:Path = $git_path + ";" + [System.Environment]::GetEnvironmentVariable("Path", "Machine") + ";" + [System.Environment]::GetEnvironmentVariable("Path", "User") - Write-Output "Here is the Path : `n" - Write-Output $env:Path - Write-Output " *** Debugging Git Archive *** `n" - Write-Output "is Git located on the path correctly? Now running Test-Path" - Test-Path -Path $($git_path + "\git.exe") + $full_git_path = $($git_path + "\git.exe") + Test-Path -Path $full_git_path # Get-Command "Git" Write-Output "Hab source path is : ${HAB_CACHE_SRC_PATH}`n" Write-Output "Package Filename is : ${pkg_filename}" # [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 --verbose" + Invoke-Expression -Command "$full_git_path archive --format=zip --output=${HAB_CACHE_SRC_PATH}\\${pkg_filename} HEAD --verbose" Start-Sleep -Seconds 30 + Write-Output " *** Finished Creating the Archive *** `n" # 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" } } finally { + Write-Output " *** Executing Pop-Location *** " Pop-Location + Write-Output " *** Finished Pop-Location *** " } } |