summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatt Wrock <matt@mattwrock.com>2022-11-02 10:09:04 -0700
committerMatt Wrock <matt@mattwrock.com>2022-11-02 10:09:04 -0700
commit989a53e5979b0c4d410b4a8fce7c2ec05e63321f (patch)
treec298c3a62ac8937871ccff5d1dbfb4e1fd6b2ece
parent2775983b7003933dd3e952680f0ef836e65e30d4 (diff)
downloadchef-989a53e5979b0c4d410b4a8fce7c2ec05e63321f.tar.gz
use core/git as build dep
Signed-off-by: Matt Wrock <matt@mattwrock.com>
-rw-r--r--habitat/plan.ps16
1 files changed, 2 insertions, 4 deletions
diff --git a/habitat/plan.ps1 b/habitat/plan.ps1
index 83312c4345..03fc1da27a 100644
--- a/habitat/plan.ps1
+++ b/habitat/plan.ps1
@@ -15,6 +15,7 @@ $pkg_deps=@(
"chef/ruby31-plus-devkit"
"chef/chef-powershell-shim"
)
+$pkg_build_deps=@( "core/git")
function Invoke-Begin {
[Version]$hab_version = (hab --version).split(" ")[1].split("/")[0]
@@ -42,12 +43,9 @@ function Invoke-Download() {
# source is in this repo, so we're going to create an archive from the
# appropriate path within the repo and place the generated tarball in the
# location expected by do_unpack
- $git_path += "c:\\Program Files\\Git\\bin"
try {
Push-Location (Resolve-Path "$PLAN_CONTEXT/../").Path
- [System.Diagnostics.Process]::Start("$git_path\\git", "archive --format=zip --output=${HAB_CACHE_SRC_PATH}\\${pkg_filename} HEAD")
- Start-Sleep -Seconds 30
- # getting an error about the archive being in use, adding the sleep to let other handles on the file finish.
+ git archive --format=zip --output=${HAB_CACHE_SRC_PATH}\\${pkg_filename} HEAD
if (-not $?) { throw "unable to create archive of source" }
} finally {
Pop-Location