Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
vj-sc authored and apattidb committed May 10, 2024
1 parent 0b4f7ab commit d8b3e4a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions unused_deps/unused_deps.go
Original file line number Diff line number Diff line change
Expand Up @@ -288,6 +288,8 @@ func printCommands(label string, deps map[string]bool) (anyCommandPrinted bool)
if hasRuntimeComment(str) {
fmt.Printf("buildozer 'move deps runtime_deps %s' %s\n", str.Value, label)
} else {
// add dep's exported dependencies to label before removing dep
fmt.Printf("buildozer \"add deps $(%s query 'labels(exports, %s)' | tr '\\n' ' ')\" %s\n", *buildTool, str.Value, label)
fmt.Printf("buildozer 'remove deps %s' %s\n", str.Value, label)
}
anyCommandPrinted = true
Expand Down

0 comments on commit d8b3e4a

Please sign in to comment.