Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(795)

Side by Side Diff: recipe_modules/infra_paths/path_config.py

Issue 1933683002: depot_tools: add specific cache directory for goma deps in kitchen path config (Closed) Base URL: https://chromium.googlesource.com/chromium/tools/depot_tools.git@master
Patch Set: Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright 2016 The Chromium Authors. All rights reserved. 1 # Copyright 2016 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 import DEPS 5 import DEPS
6 CONFIG_CTX = DEPS['path'].CONFIG_CTX 6 CONFIG_CTX = DEPS['path'].CONFIG_CTX
7 7
8 8
9 @CONFIG_CTX() 9 @CONFIG_CTX()
10 def infra_common(c): 10 def infra_common(c):
(...skipping 22 matching lines...) Expand all
33 # TODO(phajdan.jr): set persistent cache path for remaining platforms. 33 # TODO(phajdan.jr): set persistent cache path for remaining platforms.
34 # NOTE: do not use /b/swarm_slave here - it gets deleted on bot redeploy, 34 # NOTE: do not use /b/swarm_slave here - it gets deleted on bot redeploy,
35 # and may happen even after a reboot. 35 # and may happen even after a reboot.
36 if c.PLATFORM == 'linux': 36 if c.PLATFORM == 'linux':
37 c.base_paths['cache'] = ( 37 c.base_paths['cache'] = (
38 '/', 'b', 'cache', 'chromium') 38 '/', 'b', 'cache', 'chromium')
39 c.base_paths['git_cache'] = ( 39 c.base_paths['git_cache'] = (
40 '/', 'b', 'cache', 'chromium', 'git_cache') 40 '/', 'b', 'cache', 'chromium', 'git_cache')
41 c.base_paths['goma_cache'] = ( 41 c.base_paths['goma_cache'] = (
42 '/', 'b', 'cache', 'chromium', 'goma_cache') 42 '/', 'b', 'cache', 'chromium', 'goma_cache')
43 c.base_paths['goma_deps_cache'] = (
44 '/', 'b', 'cache', 'chromium', 'goma_deps_cache')
43 else: 45 else:
44 c.base_paths['cache'] = c.base_paths['root'] + ('cache',) 46 c.base_paths['cache'] = c.base_paths['root'] + ('cache',)
45 c.base_paths['git_cache'] = c.base_paths['root'] + ('cache_dir',) 47 c.base_paths['git_cache'] = c.base_paths['root'] + ('cache_dir',)
46 c.base_paths['goma_cache'] = c.base_paths['root'] + ('goma_cache',) 48 c.base_paths['goma_cache'] = c.base_paths['root'] + ('goma_cache',)
49 c.base_paths['goma_deps_cache'] = c.base_paths['root'] + (
50 'goma_deps_cache',)
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698