File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -140,6 +140,16 @@ def _zipmerge_impl(ctx):
140
140
executable = ctx .executable ._zipmerge ,
141
141
inputs = depset (zips , transitive = transitive_zips ),
142
142
arguments = args ,
143
+ # Disable remote caching for zipmerge:
144
+ # * One of the inputs to zipmerge (often the larger one) comes from a lazy-lfs rule.
145
+ # Those are retrieved by bazel even in the presence of a build cache, so downloading the whole zipmerged
146
+ # artifact is slower than downloading the smaller bazel-produced zip and rerunning zipmerge on that
147
+ # and the (already-present) LFS artifact.
148
+ # * This prevents unnecessary cache usage - every change to the Swift extractor would otherwise
149
+ # trigger a build of a >500MB zip file that'd quickly fill up the cache.
150
+ execution_requirements = {
151
+ "no-remote-cache" : "1" ,
152
+ },
143
153
)
144
154
145
155
return [
You can’t perform that action at this time.
0 commit comments