Skip to content

Commit

Permalink
fetchers: repo: use "console" Ninja pool
Browse files Browse the repository at this point in the history
This pools makes Ninja to display all repo output to user. This
may come in help if fetch fails for some reason. One drawback is that
tasks in "console" pool can't run in parallel, but "repo" itself is
capable of parallel fetch, so this is not a big issue.

Signed-off-by: Volodymyr Babchuk <[email protected]>
  • Loading branch information
lorc committed Jun 3, 2024
1 parent 90d3bb1 commit 147eb98
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions moulin/fetchers/repo.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ def gen_build_rules(generator: ninja_syntax.Writer):

generator.rule("repo_sync",
command="cd $repo_dir && repo sync && touch $out",
pool="console",
description="Repo sync")
generator.newline()

Expand Down

0 comments on commit 147eb98

Please sign in to comment.