Skip to content

Commit 73e2d3f

Browse files
committed
(BUGFIX) Patch Puppet 8 to take from Github
1 parent a539fee commit 73e2d3f

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

exe/matrix_from_metadata_v2

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,11 @@ if metadata.key?('requirements') && metadata['requirements'].length.positive?
146146
next unless Gem::Requirement.create(reqs).satisfied_by?(Gem::Version.new("#{collection[:puppet_maj_version]}.9999"))
147147

148148
matrix[:collection] << "puppet#{collection[:puppet_maj_version]}-nightly"
149-
spec_matrix[:include] << { puppet_version: "~> #{collection[:puppet_maj_version]}.0", ruby_version: collection[:ruby_version] }
149+
spec_matrix[:include] << if collection[:puppet_maj_version] == 8
150+
{ puppet_version: 'https://github.com/puppetlabs/puppet', ruby_version: collection[:ruby_version] }
151+
else
152+
{ puppet_version: "~> #{collection[:puppet_maj_version]}.0", ruby_version: collection[:ruby_version] }
153+
end
150154
end
151155
end
152156
end

0 commit comments

Comments
 (0)