Skip to content

Commit 2cc3775

Browse files
authored
Merge pull request #203 from OpenVoxProject/fix_version_lib_load
Fix how we find the version library
2 parents 2474c8d + ae9f359 commit 2cc3775

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

openvox.gemspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# When we are building the gem from source, we instead look relative to where this gemspec
44
# file lives. This is a little jank, but prevents us from having to update the version in
55
# two different places.
6-
installed_path = '/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/version'
6+
installed_path = "#{__dir__}/../../../vendor_ruby/puppet/version"
77
version_path = File.exist?("#{installed_path}.rb") ? installed_path : 'lib/puppet/version'
88
require_relative "#{version_path}"
99

0 commit comments

Comments
 (0)