forked from 3rdparty/eventuals
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.dazelrc
23 lines (19 loc) · 1.05 KB
/
.dazelrc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/usr/bin/env python3
# This configuration file is effectively a python module loaded by dazel.
# Source: https://github.com/nadirizr/dazel/blob/master/dazel.py#L600-L601
import os.path
# Instead of using the host's Bazel cache (at ~/.cache/bazel), use a directory
# that Dazel has to itself. This is essential to avoid a recurring problem with
# compilation failures due to corrupt caches. Even Dazel's maintainers think
# using the same cache is a mistake: https://github.com/nadirizr/dazel/issues/43
#
# We specify a path to an arbitrary 'eventuals' directory to hopefully avoid
# cache pollution/conflict from other uses of dazel in other repositories
# but this is just best effort because multiple clones of eventuals will still
# use the same directory.
DAZEL_BAZEL_USER_OUTPUT_ROOT = os.path.expanduser("~/.cache/dazel/eventuals")
DAZEL_DOCKERFILE = "Dockerfile.dazel"
# Use a unique Dazel image and instance name so it doesn't conflict with other
# Dazel instances in other repos.
DAZEL_IMAGE_NAME = "dazel-eventuals"
DAZEL_INSTANCE_NAME = "dazel-eventuals"