Skip to content

Commit 5c19b1c

Browse files
committed
(PUP-11756) Update facter dependency
With the release of facter 4.3.0 we no longer need to point to facter's github repo.
1 parent ec0254c commit 5c19b1c

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

.gemspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ Gem::Specification.new do |s|
3232
s.require_paths = ["lib"]
3333
s.summary = "Puppet, an automated configuration management tool"
3434
s.specification_version = 3
35-
s.add_runtime_dependency(%q<facter>, [">= 2.4.0", "< 5"])
35+
s.add_runtime_dependency(%q<facter>, [">= 4.3.0", "< 5"])
3636
s.add_runtime_dependency(%q<semantic_puppet>, "~> 1.0")
3737
s.add_runtime_dependency(%q<fast_gettext>, ">= 2.1", "< 3")
3838
s.add_runtime_dependency(%q<locale>, "~> 2.1")

Gemfile

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,7 @@ def location_for(place, fake_version = nil)
1212
end
1313
end
1414

15-
# override .gemspec deps - may issue warning depending on Bundler version
16-
gem "facter", :git => 'https://github.com/puppetlabs/facter'
15+
gem "facter", *location_for(ENV['FACTER_LOCATION'] || ["~> 4.3"])
1716
gem "semantic_puppet", *location_for(ENV['SEMANTIC_PUPPET_LOCATION'] || ["~> 1.0"])
1817
gem "puppet-resource_api", *location_for(ENV['RESOURCE_API_LOCATION'] || ["~> 1.5"])
1918

ext/project_data.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ gem_forge_project: 'puppet'
1818
gem_required_ruby_version: '>= 2.7.0'
1919
gem_required_rubygems_version: '> 1.3.1'
2020
gem_runtime_dependencies:
21-
facter: ['> 2.0.1', '< 5']
21+
facter: ['> 4.3.0', '< 5']
2222
semantic_puppet: '~> 1.0'
2323
fast_gettext: ['>= 1.1', '< 3']
2424
locale: '~> 2.1'

0 commit comments

Comments
 (0)