bazel-contrib / bazel-contrib/buildtools
Cannot use -f with source file from stdin
- Dominant language
- Go
- Stars
- 1.2k
- Forks
- 471
- Avg merge
- 2d 22h
- Merged PRs (30d)
- 13
Description
I have a long series of commands I'd like to run on some BUILD file text. The commands sometimes have different targets, so I can't pass the commands on the commandline. I tried writing my commands to a temp file, and then using `-f`. In the file, I use `-:__pkg__` to operate on stdin. However, I get this error:
```
-/BUILD: file not found or not readable
```
It seems that `-` is not recognized in a command file.
Contributor guide
Research direction
Start by reproducing the issue with a command file passed via `-f` and a BUILD file supplied on stdin, using the `-:__pkg__` marker described in the report. Trace how command-file arguments and the `-` source are parsed; done means the command runs against stdin without looking for `-/BUILD`.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- go
- Domain
- cli
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100