mirror of
https://github.com/inspec/inspec
synced 2024-11-10 07:04:15 +00:00
Use RubyGems version for habitat plan
In #1820 we made it so inspec would install the checked out source version rather than the version from RubyGems. This actually didn't work (though it wasn't apparent in a development environment) because it used a relative path to bin/inspec that pointed at /src/bin/inspec, which only exists if you're in a Habitat studio started from the InSpec repo. Revert back to getting the gem from RubyGems to avoid this problem and have a working package. Signed-off-by: Nathan L Smith <smith@chef.io>
This commit is contained in:
parent
be2453def6
commit
8ede5556ba
1 changed files with 1 additions and 1 deletions
|
@ -45,7 +45,7 @@ do_prepare() {
|
|||
# Instead, we build a minimal Gemfile in the $CACHE_PATH and bundle using that.
|
||||
cat > "$CACHE_PATH/Gemfile" <<GEMFILE
|
||||
source 'https://rubygems.org'
|
||||
gem '$pkg_name', path: '$SRC_PATH'
|
||||
gem '$pkg_name', '= $pkg_version'
|
||||
GEMFILE
|
||||
|
||||
export BUNDLE_SILENCE_ROOT_WARNING GEM_HOME GEM_PATH
|
||||
|
|
Loading…
Reference in a new issue