From e3f948e7a0e0e1df61a721f418a3afff012817dd Mon Sep 17 00:00:00 2001 From: John McCrae Date: Tue, 1 Nov 2022 13:23:30 +0600 Subject: Solved? No, but closer Signed-off-by: John McCrae --- habitat/plan.ps1 | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/habitat/plan.ps1 b/habitat/plan.ps1 index 1c43faa140..06af85c3e5 100644 --- a/habitat/plan.ps1 +++ b/habitat/plan.ps1 @@ -58,10 +58,15 @@ function Invoke-Download { } choco feature disable -n=showDownloadProgress choco feature enable -n=allowGlobalConfirmation + $file = $($HAB_CACHE_SRC_PATH + "\\" + $pkg_filename) + Write-Host "Going to Make a zipfile right here : " $env:Path = 'C:\Program Files\Git\cmd;' + [System.Environment]::GetEnvironmentVariable("Path", "Machine") + ";" + [System.Environment]::GetEnvironmentVariable("Path", "User") - Invoke-Expression -Command "git archive --format=zip --output=$HAB_CACHE_SRC_PATH\\$pkg_filename HEAD" -ErrorAction Stop -Verbose + Invoke-Expression -Command "git archive --format=zip --output=$file HEAD" -ErrorAction Stop -Verbose + Write-Host "Did I correctly make that file?" + Test-Path -Path $file Write-Host "Searching for Ruby" $paths = Get-ChildItem -Path c:\ -File "ruby.exe" -Recurse -ErrorAction SilentlyContinue + Write-Host "I collected the paths with Ruby on them." foreach($path in $paths){ if ($path -match "hab") { $global:hab_path = Split-Path -Path $path -Parent -- cgit v1.2.1