Skip to content

Commit c687b3b

Browse files
authored
Merge pull request #36 from OpenVoxProject/fix_facter_references
2 parents 76fdf63 + 262bc28 commit c687b3b

3 files changed

Lines changed: 7 additions & 3 deletions

File tree

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,4 +30,5 @@ link_report.txt
3030
.yardoc
3131
puppet-docs-build.log
3232
source/.jekyll-cache/
33-
.ruby-version
33+
.ruby-version
34+
Gemfile.lock

lib/puppet_references.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ def self.build_facter_references(commit)
5757
version4 = Gem::Version.create('4.0.0')
5858
repo = PuppetReferences::Repo.new('facter', FACTER_DIR)
5959
real_commit = repo.checkout(commit)
60+
repo.update_bundle
6061
if !semantic?(commit) || (semantic?(commit) && Gem::Version.create(commit) >= version4)
6162
references << PuppetReferences::Facter::FacterCli
6263
elsif semantic?(commit) && Gem::Version.create(commit) < version4

lib/puppet_references/repo.rb

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,10 @@ def update_bundle
4646
puts "In #{@name} dir: Running bundle update."
4747
PuppetReferences::Util.run_dirty_command('bundle update')
4848
else
49-
puts "In #{@name} dir: Running bundle install --path .bundle/stuff"
50-
PuppetReferences::Util.run_dirty_command('bundle install --path .bundle/stuff')
49+
puts "In #{@name} dir: Running bundle config set --local path '.bundle/stuff'"
50+
PuppetReferences::Util.run_dirty_command("bundle config set --local path '.bundle/stuff'")
51+
puts "In #{@name} dir: Running bundle install"
52+
PuppetReferences::Util.run_dirty_command('bundle install')
5153
end
5254
end
5355
end

0 commit comments

Comments
 (0)