summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn McCrae <john.mccrae@progress.com>2022-11-01 13:23:30 +0600
committerJohn McCrae <john.mccrae@progress.com>2022-11-01 13:23:30 +0600
commite3f948e7a0e0e1df61a721f418a3afff012817dd (patch)
tree71b2baa11d4bdc463ff0d0bc9cb8988421dcf5d2
parent9e554bdde24914630446a1b3a7821c45aa4dd4b8 (diff)
downloadchef-jfm/habitat_failing.tar.gz
Solved? No, but closerjfm/habitat_failing
Signed-off-by: John McCrae <john.mccrae@progress.com>
-rw-r--r--habitat/plan.ps17
1 files changed, 6 insertions, 1 deletions
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