diff --git a/habitat/plan.ps1 b/habitat/plan.ps1 index 71c1756f..ff7038a0 100644 --- a/habitat/plan.ps1 +++ b/habitat/plan.ps1 @@ -1,6 +1,7 @@ $ErrorActionPreference = "Stop" $PSDefaultParameterValues['*:ErrorAction']='Stop' +$env:HAB_BLDR_CHANNEL = "LTS-2024" $pkg_name="cookstyle" $pkg_origin="chef" $pkg_version=$(Get-Content "$PLAN_CONTEXT/../VERSION") @@ -21,7 +22,6 @@ function pkg_version { function Invoke-Before { Set-PkgVersion } - function Invoke-SetupEnvironment { Push-RuntimeEnv -IsPath GEM_PATH "$pkg_prefix/vendor" @@ -48,7 +48,6 @@ function Invoke-Build { gem build cookstyle.gemspec Write-BuildLine " ** Using gem to install" gem install cookstyle-*.gem --no-document - If ($lastexitcode -ne 0) { Exit $lastexitcode } } finally { diff --git a/habitat/tests/test.ps1 b/habitat/tests/test.ps1 index f143640f..3d07690f 100644 --- a/habitat/tests/test.ps1 +++ b/habitat/tests/test.ps1 @@ -9,6 +9,8 @@ Write-Host "--- :fire: Smokish test" $version=hab pkg exec "${pkg_ident}" cookstyle -v $actual_version=[Regex]::Match($version,"([0-9]+.[0-9]+.[0-9]+)").Value $package_version=$PackageIdentifier.split("/",4)[2] + +Write-Host "package_version $package_version actual version $actual_version" if ($package_version -eq $actual_version) { Write "cookstyle working fine"