update bundle_update ignored gems config
* don't ignore gems if they're part of another dependency group * nokogiri got updated * aws-partitions and sorbet-runtime are frequently updated; we don't need latest Change-Id: I91b53a833c4fd12a05c154a6f507ae03cb19d4e0 Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/326055 Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com> Reviewed-by: Jacob Burroughs <jburroughs@instructure.com> QA-Review: Cody Cutrer <cody@instructure.com> Product-Review: Cody Cutrer <cody@instructure.com>
This commit is contained in:
parent
271719430b
commit
ee00998199
|
@ -68,7 +68,6 @@ output.each do |line|
|
||||||
next if line.empty?
|
next if line.empty?
|
||||||
|
|
||||||
gem, details = line.split(" ", 2)
|
gem, details = line.split(" ", 2)
|
||||||
next if ignored_gems.include?(gem)
|
|
||||||
next if details.include?("requested = ") # exact requirements can't be updated
|
next if details.include?("requested = ") # exact requirements can't be updated
|
||||||
|
|
||||||
gems_to_update << gem
|
gems_to_update << gem
|
||||||
|
@ -93,6 +92,8 @@ until gems_to_update.empty?
|
||||||
gem = ([gem] + sibling_gems).join(" ")
|
gem = ([gem] + sibling_gems).join(" ")
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
next if ignored_gems.include?(gem)
|
||||||
|
|
||||||
puts "Updating #{parent_gem || gem}..."
|
puts "Updating #{parent_gem || gem}..."
|
||||||
|
|
||||||
system("bundle update #{gem} --quiet")
|
system("bundle update #{gem} --quiet")
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
ignored_gems:
|
ignored_gems:
|
||||||
- nokogiri
|
- aws-partitions
|
||||||
|
- sorbet-runtime
|
||||||
|
|
||||||
# don't bother trying to update dependent gems unless their primary dependency
|
# don't bother trying to update dependent gems unless their primary dependency
|
||||||
# doesn't need updated as well
|
# doesn't need updated as well
|
||||||
|
|
Loading…
Reference in New Issue