File tree Expand file tree Collapse file tree 2 files changed +13
-2
lines changed
bundler/helpers/v2/lib/functions Expand file tree Collapse file tree 2 files changed +13
-2
lines changed Original file line number Diff line number Diff line change 84
84
- 'common/**'
85
85
- 'updater/**'
86
86
- 'bundler/**'
87
+ bundler-group-vendoring:
88
+ - .github/workflows/smoke.yml
89
+ - .dockerignore
90
+ - Dockerfile.updater-core
91
+ - 'common/**'
92
+ - 'updater/**'
93
+ - 'bundler/**'
87
94
cargo:
88
95
- .github/workflows/smoke.yml
89
96
- .dockerignore
Original file line number Diff line number Diff line change @@ -92,13 +92,17 @@ def cache_vendored_gems(definition)
92
92
def prune_gem_cache ( resolve , cache_path , updated_gems )
93
93
cached_gems = Dir [ "#{ cache_path } /*.gem" ]
94
94
95
- outdated_gems = cached_gems . reject do |path |
95
+ outdated_gems = cached_gems . select do |path |
96
96
spec = Bundler . rubygems . spec_from_gem path
97
97
98
- ! updated_gems . include? ( spec . name ) || resolve . any ? do |s |
98
+ caused_by_update = updated_gems . include? ( spec . name ) && resolve . none ? do |s |
99
99
s . name == spec . name && s . version == spec . version &&
100
100
!s . source . is_a? ( Bundler ::Source ::Git )
101
101
end
102
+
103
+ caused_by_removal = resolve . none? { |s | s . name == spec . name }
104
+
105
+ caused_by_update || caused_by_removal
102
106
end
103
107
104
108
return unless outdated_gems . any?
You can’t perform that action at this time.
0 commit comments