Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

cwd target doesn't work with ibazel

Open
#67 6 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
25/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale
Tech stack
shell

Research direction

Start with the README section “Running tools in the current working directory” and reproduce the issue using ./tools/ibazel with a server target, then interrupt it with SIGINT. Compare that behavior with the shell script shown in the issue and the linked aspect-workflows-template change. Done means deciding and documenting whether rules_multitool should address the zombie process behavior or leave it to bazel run.

Written by the indexing model from the issue text.

Description

A customer pointed out that the pattern documented on the README
https://github.com/theoremlp/rules_multitool?tab=readme-ov-file#running-tools-in-the-current-working-directory
doesn't work correctly with some programs like ibazel (bazel-watcher) because zombie processes get left behind.
We think this post from @lberki is related https://groups.google.com/g/bazel-discuss/c/I6TWUv8AI5o
I think this can be reproduced by running some server target under ./tools/ibazel //my/server:target, then when you ctrl-c (SIGINT) you'll still see the server is running.

So we changed our aspect init https://github.com/aspect-build/aspect-workflows-template/pull/87
to still stamp out a script that DOES function correctly:

#!/bin/sh
target="@multitool//tools/$(basename "$0")"
bazel 2>/dev/null build "$target" && exec $(bazel info execution_root)/$(bazel 2>/dev/null cquery --output=files "$target") "$@"

Personally I think bazel run is still just busted in a way rules_multitool shouldn't try to fix.

Dominant language
Starlark
Stars
26
Forks
11
PR merge metrics
No merged PRs in 30d

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from bazel-contrib/rules_multitool

All issues in bazel-contrib/rules_multitool

Similar issues

More Build System issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.