Skip to content

Commit 1c98c18

Browse files
committed
fix: create symlink for tar
* we removed the bsdtar since windows comes with it now in 614bdc0 * however, some older versions of garden-runc still expect it to live there * this adds a symlink to maintain backwards compatiblity with older garden-runc releases
1 parent a96180a commit 1c98c18

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

modules/BOSH.Agent/BOSH.Agent.Tests.ps1

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,7 @@ Describe "BOSH.Account" {
9191
Test-Path (Join-Path $depsDir "bosh-blobstore-dav.exe") | Should -Be $True
9292
Test-Path (Join-Path $depsDir "bosh-blobstore-s3.exe") | Should -Be $True
9393
Test-Path (Join-Path $depsDir "bosh-blobstore-gcs.exe") | Should -Be $True
94+
Test-Path (Join-Path $depsDir "tar.exe") | Should -Be $True
9495
}
9596
}
9697

modules/BOSH.Agent/BOSH.Agent.psm1

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,8 @@ function Copy-Agent
6767
Open-Zip $agentZipPath $boshDir
6868
Move-Item (Join-Path $boshDir (Join-Path "deps" "*")) $depsDir
6969
Remove-Item -Path (Join-Path $boshDir "deps") -Force
70+
71+
New-Item -Path (Join-Path $depsDir "tar.exe") -ItemType SymbolicLink -V "C:\Windows\system32\tar.exe"
7072
}
7173

7274

0 commit comments

Comments
 (0)