Skip to content

Commit

Permalink
avoid reusing bazel's cache; it causes frequent failures
Browse files Browse the repository at this point in the history
  • Loading branch information
lilydjwg committed Oct 12, 2022
1 parent 0759d59 commit d454b97
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
8 changes: 6 additions & 2 deletions config.toml.sample
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,8 @@ max_concurrency = 1
# source directories will be created if not yet
"~/.cache/archbuild-bind-cache" = "/build/.cache"
"~/.cache/archbuild-bind-cache/stack" = "/build/.stack"
# bazel's cache causes failures frequently
"/tmp/shitty-bazel" = "/build/.cache/bazel"
"~/.cache/pip" = "/build/.cache/pip"
"~/.cargo" = "/build/.cargo"

Expand All @@ -67,9 +69,11 @@ max_concurrency = 1
# ["sudo", "rsync-packages-pool"],
# ]
# run some commands after each run
# postrun = [
postrun = [
['find', '/tmp/shitty-bazel', '-type', 'd', '-exec', 'chmod', 'u+w', '{}', '+'],
['rm', '-rf', '/tmp/shitty-bazel'],
# ["upload-packages"],
# ]
]
# run some commands after each package built
# env: PKGBASE, RESULT=successful, failed, skipped, staged, VERSION
# postbuild = [
Expand Down
2 changes: 1 addition & 1 deletion lilac2/nvchecker.py
Original file line number Diff line number Diff line change
Expand Up @@ -235,6 +235,6 @@ def nvtake(L: Iterable[str], infos: LilacInfos) -> None:
names.append(name)

run_cmd(['nvtake', '--ignore-nonexistent', '-c', NVCHECKER_FILE] # type: ignore
+ names) # type: ignore
+ names)
# mypy can't infer List[Union[str, Path]]
# and can't understand List[str] is a subtype of it

0 comments on commit d454b97

Please sign in to comment.