Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion unused_deps/unused_deps.go
Original file line number Diff line number Diff line change
Expand Up @@ -354,7 +354,7 @@ func main() {
}
queryCmd = append(queryCmd, blazeFlags...)
queryCmd = append(
queryCmd, fmt.Sprintf("kind('(kt|java|android)_*', %s)", strings.Join(targetPatterns, " + ")))
queryCmd, fmt.Sprintf("kind('^(kt|java|android)_*', %s)", strings.Join(targetPatterns, " + ")))
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should the line 365 be updated as well? To match the real command.

Would be nice to have tests as well, but it seems that this file is not covered by any tests =/ Therefore, this is a non-blocking wish.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the log message?
It's probably fine as is tbh.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe.. I'd keep everything aligned, but this doesn't really affect user experience.


log.Printf("running: %s %s", *buildTool, strings.Join(queryCmd, " "))
queryOut, err := cmdWithStderr(*buildTool, queryCmd...).Output()
Expand Down