Merge pull request #4878 from inspec/mj/habver

With the release version 1.5.0 of habitat, lets not worry about <0.85
This commit is contained in:
Keka Ichinose 2020-02-11 13:07:34 -08:00 committed by GitHub
commit 72ecdde8c4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -16,17 +16,6 @@ $pkg_bin_dirs=@("bin"
"vendor/bin")
$project_root= (Resolve-Path "$PLAN_CONTEXT/../").Path
function Invoke-Begin {
$hab_version = (hab --version)
$hab_minor_version = $hab_version.split('.')[1]
if ( -not $? -Or $hab_minor_version -lt 85 ) {
Write-Warning "I'm being built with $hab_version. I need at least Hab 0.85.0, because I use the -IsPath option for setting/pushing paths in SetupEnvironment."
throw "unable to build: required minimum version of Habitat not installed"
} else {
Write-BuildLine ":habicat: I think I have the version I need to build."
}
}
function Invoke-SetupEnvironment {
Push-RuntimeEnv -IsPath GEM_PATH "$pkg_prefix/vendor"