Skip to content

Commit

Permalink
install additional pkgs from env
Browse files Browse the repository at this point in the history
Signed-off-by: Phani Sajja <[email protected]>
  • Loading branch information
sajjaphani committed Oct 30, 2024
1 parent bf3fb0b commit 09e8dca
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions components/plan-build-ps1/bin/hab-plan-build.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -1746,6 +1746,20 @@ try {

Set-HabBin

# This installs any additional packages required for building.
# It is useful in scenarios where you have a newer version of a package
# and want Habitat to use the newer, locally installed version during
# a studio build. We do exactly this during the package refresh process with `hab-auto-build`.
if (-not [string]::IsNullOrEmpty($env:HAB_STUDIO_INSTALL_PKGS)) {
Write-BuildLine "Installing additional packages in bootstrap studio"
$deps = $env:HAB_STUDIO_INSTALL_PKGS -split ";"
foreach ($dep in $deps) {
Write-BuildLine "Installing $dep"
$cmd = "$HAB_BIN pkg install $dep"
Invoke-Expression $cmd
}
}

# Download and resolve the depdencies
# Create initial package arrays
Initialize-DependencyList
Expand Down

0 comments on commit 09e8dca

Please sign in to comment.