infra_paths: keep cache paths super short to avoid long path issues

BUG=623575

Review-Url: https://codereview.chromium.org/2102613002
changes/90/365990/1
phajdan.jr 9 years ago committed by Commit bot
parent 426e4271da
commit aa0b3b6bd0

@ -36,16 +36,18 @@ def infra_kitchen(c):
b_dir = b_dir[:-1] b_dir = b_dir[:-1]
if c.PLATFORM in ('linux', 'mac'): if c.PLATFORM in ('linux', 'mac'):
c.base_paths['cache'] = ( c.base_paths['cache'] = ('/', 'b', 'c')
'/', 'b', 'cache', 'chromium') c.base_paths['builder_cache'] = c.base_paths['cache'] + ('b',)
for path in ('builder_cache', 'git_cache', 'goma_cache', 'goma_deps_cache'): for path in ('git_cache', 'goma_cache', 'goma_deps_cache'):
c.base_paths[path] = c.base_paths['cache'] + (path,) c.base_paths[path] = c.base_paths['cache'] + (path,)
elif b_dir: elif b_dir:
c.base_paths['cache'] = b_dir + ('cache', 'chromium') c.base_paths['cache'] = b_dir + ('c',)
for path in ('builder_cache', 'git_cache', 'goma_cache', 'goma_deps_cache'): c.base_paths['builder_cache'] = c.base_paths['cache'] + ('b',)
for path in ('git_cache', 'goma_cache', 'goma_deps_cache'):
c.base_paths[path] = c.base_paths['cache'] + (path,) c.base_paths[path] = c.base_paths['cache'] + (path,)
else: # pragma: no cover else: # pragma: no cover
c.base_paths['cache'] = c.base_paths['root'] + ('cache',) c.base_paths['cache'] = c.base_paths['root'] + ('c',)
c.base_paths['builder_cache'] = c.base_paths['cache'] + ('b',)
c.base_paths['git_cache'] = c.base_paths['root'] + ('cache_dir',) c.base_paths['git_cache'] = c.base_paths['root'] + ('cache_dir',)
for path in ('builder_cache', 'goma_cache', 'goma_deps_cache'): for path in ('goma_cache', 'goma_deps_cache'):
c.base_paths[path] = c.base_paths['cache'] + (path,) c.base_paths[path] = c.base_paths['cache'] + (path,)

Loading…
Cancel
Save