This repository has been archived by the owner on Aug 5, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 46
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[feature] support bzlmod in rules detection | #BAZEL-700 Done
- detect bzlmod - support dynamic rules detection when on bzlmod Merge-request: BAZEL-MR-578 Merged-by: Xuan Son Trinh <[email protected]>
- Loading branch information
1 parent
89beaf7
commit 47cdfa8
Showing
22 changed files
with
437 additions
and
278 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 3 additions & 3 deletions
6
aspects/rules/kt/kt_info.bzl → aspects/rules/kt/kt_info.bzl.template
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
38 changes: 23 additions & 15 deletions
38
bazelrunner/src/main/kotlin/org/jetbrains/bsp/bazel/bazelrunner/BazelInfoResolver.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 16 additions & 8 deletions
24
bazelrunner/src/main/kotlin/org/jetbrains/bsp/bazel/bazelrunner/BazelRunnerCommandBuilder.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,20 @@ | ||
package org.jetbrains.bsp.bazel.bazelrunner | ||
|
||
class BazelRunnerCommandBuilder internal constructor(private val bazelRunner: BazelRunner) { | ||
fun aquery() = BazelRunnerBuilder(bazelRunner, "aquery") | ||
fun clean() = BazelRunnerBuilder(bazelRunner, "clean") | ||
fun fetch() = BazelRunnerBuilder(bazelRunner, "fetch") | ||
fun info() = BazelRunnerBuilder(bazelRunner, "info") | ||
fun run() = BazelRunnerBuilder(bazelRunner, "run") | ||
fun query() = BazelRunnerBuilder(bazelRunner, "query") | ||
fun build() = BazelRunnerBuildBuilder(bazelRunner, "build") | ||
fun test() = BazelRunnerBuildBuilder(bazelRunner, "test") | ||
fun aquery() = BazelRunnerBuilder(bazelRunner, listOf("aquery")) | ||
fun clean() = BazelRunnerBuilder(bazelRunner, listOf("clean")) | ||
fun fetch() = BazelRunnerBuilder(bazelRunner, listOf("fetch")) | ||
fun info() = BazelRunnerBuilder(bazelRunner, listOf("info")) | ||
fun run() = BazelRunnerBuilder(bazelRunner, listOf("run")) | ||
fun mod(subcommand: String) = BazelRunnerBuilder(bazelRunner, listOf("mod", subcommand)) | ||
fun graph() = mod("graph") | ||
fun deps() = mod("deps") | ||
fun allPaths() = mod("all_paths") | ||
fun path() = mod("path") | ||
fun explain() = mod("explain") | ||
fun showRepo() = mod("show_repo") | ||
fun showExtension() = mod("show_extension") | ||
fun query() = BazelRunnerBuilder(bazelRunner, listOf("query")) | ||
fun build() = BazelRunnerBuildBuilder(bazelRunner, listOf("build")) | ||
fun test() = BazelRunnerBuildBuilder(bazelRunner, listOf("test")) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.