Skip to content

Commit

Permalink
fix(bazel): Correctly get the Buildozer version
Browse files Browse the repository at this point in the history
This is a fixup for 8516d2a. However, note [1] about the version always
saying "redacted".

[1]: bazelbuild/buildtools#831

Signed-off-by: Sebastian Schuberth <[email protected]>
  • Loading branch information
sschuberth committed Dec 16, 2024
1 parent 81f58ea commit b503901
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions plugins/package-managers/bazel/src/main/kotlin/Bazel.kt
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,9 @@ internal object BazelCommand : CommandLineTool {

internal object BuildozerCommand : CommandLineTool {
override fun command(workingDir: File?) = "buildozer"

override fun transformVersion(output: String) =
output.lineSequence().first().trim().removePrefix("buildozer version: ")
}

class Bazel(
Expand Down

0 comments on commit b503901

Please sign in to comment.