Skip to content

Commit

Permalink
Move core Bazelisk logic into core package. (bazelbuild#166)
Browse files Browse the repository at this point in the history
The bazelisk.go file now only contains the main function, since all of its previous code was moved into core/core.go.

As a result, Bazelisk can now be used as a library with custom repository implementations, with core.RunBazelisk() serving as entry point.
  • Loading branch information
fweikert authored Sep 21, 2020
1 parent 079c993 commit a81efd7
Show file tree
Hide file tree
Showing 5 changed files with 651 additions and 636 deletions.
6 changes: 1 addition & 5 deletions BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -45,13 +45,8 @@ go_library(
visibility = ["//visibility:private"],
x_defs = {"BazeliskVersion": "{STABLE_VERSION}"},
deps = [
"@com_github_hashicorp_go_version//:go_default_library",
"@com_github_mitchellh_go_homedir//:go_default_library",
"//core",
"//httputil",
"//platforms",
"//repositories",
"//versions",
],
)

Expand All @@ -64,6 +59,7 @@ go_test(
embed = [":go_default_library"],
importpath = "github.com/bazelbuild/bazelisk",
deps = [
"//core",
"@io_bazel_rules_go//go/tools/bazel:go_default_library",
],
)
Expand Down
Loading

0 comments on commit a81efd7

Please sign in to comment.