Commit d331e5a2 authored by Samuel E. Giddins's avatar Samuel E. Giddins

[Cache] Include spec checksum in released pods' slugs

parent 35380030
...@@ -25,9 +25,10 @@ module Pod ...@@ -25,9 +25,10 @@ module Pod
def slug(name: self.name, params: self.params) def slug(name: self.name, params: self.params)
if released_pod? if released_pod?
"Release/#{name}/#{spec.version}" checksum = spec.checksum && '-' << spec.checksum.limit(5)
"Release/#{name}/#{spec.version}#{checksum}"
else else
opts = params.to_a.sort_by(&:first).map { |k, v| "#{k}=#{v}" }.join('-').gsub(/#{Regexp.escape File::SEPARATOR}+/, '+') opts = params.to_a.sort_by(&:first).map { |k, v| "#{k}=#{v}" }.join('-').gsub(/(#{Regexp.escape File::SEPARATOR})+/, '+')
"External/#{name}/#{opts}" "External/#{name}/#{opts}"
end end
end end
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment