-
Notifications
You must be signed in to change notification settings - Fork 309
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Windows ARM64 and Refactored Targets (#601)
* bzlmod: removed legacy repo_name override for rules_go and gazelle * applied buildifier reformat * ws: update godoc to reference bazel 7.2.1 instead of 6.3.0 * re-generate targets using gazelle * add "gazelle:ignore" to root BUILD file to prevent gazelle from generating a new go_test target * update aspect_rules_js to latest 1.x version * add windows-arm target / refactor root BUILD to dinamically generate go_binary targets (stripped and not stripped)
- Loading branch information
1 parent
99ab439
commit 4448ad1
Showing
12 changed files
with
76 additions
and
107 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
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,19 +1,22 @@ | ||
module(name = "bazelisk", version="") | ||
module( | ||
name = "bazelisk", | ||
version = "", | ||
) | ||
|
||
bazel_dep(name = "gazelle", version = "0.38.0", repo_name = "bazel_gazelle") | ||
bazel_dep(name = "gazelle", version = "0.38.0") | ||
bazel_dep(name = "platforms", version = "0.0.10") | ||
bazel_dep(name = "rules_go", version = "0.49.0", repo_name = "io_bazel_rules_go") | ||
bazel_dep(name = "aspect_rules_js", version = "1.39.1") | ||
bazel_dep(name = "rules_go", version = "0.49.0") | ||
bazel_dep(name = "aspect_rules_js", version = "1.42.3") | ||
|
||
go_sdk = use_extension("@io_bazel_rules_go//go:extensions.bzl", "go_sdk") | ||
go_sdk = use_extension("@rules_go//go:extensions.bzl", "go_sdk") | ||
go_sdk.download(version = "1.22.5") | ||
|
||
go_deps = use_extension("@bazel_gazelle//:extensions.bzl", "go_deps") | ||
go_deps = use_extension("@gazelle//:extensions.bzl", "go_deps") | ||
go_deps.from_file(go_mod = "//:go.mod") | ||
use_repo( | ||
go_deps, | ||
"com_github_bgentry_go_netrc", | ||
"com_github_hashicorp_go_version", | ||
"com_github_mitchellh_go_homedir", | ||
"com_github_bgentry_go_netrc", | ||
"org_golang_x_term", | ||
) |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,9 @@ | ||
load("@io_bazel_rules_go//go:def.bzl", "go_library") | ||
load("@rules_go//go:def.bzl", "go_library") | ||
|
||
go_library( | ||
name = "config", | ||
srcs = ["config.go"], | ||
importpath = "github.com/bazelbuild/bazelisk/config", | ||
visibility = ["//visibility:public"], | ||
deps = [ | ||
"//ws", | ||
"@com_github_mitchellh_go_homedir//:go_default_library", | ||
], | ||
deps = ["//ws"], | ||
) |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,22 @@ | ||
load("@bazel_gazelle//:def.bzl", "gazelle") | ||
load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") | ||
load("@gazelle//:def.bzl", "gazelle") | ||
load("@rules_go//go:def.bzl", "go_library", "go_test") | ||
|
||
# gazelle:prefix github.com/bazelbuild/bazelisk/httputil/progress | ||
gazelle(name = "gazelle") | ||
|
||
go_library( | ||
name = "progress", | ||
srcs = [ | ||
"progress.go", | ||
], | ||
srcs = ["progress.go"], | ||
importpath = "github.com/bazelbuild/bazelisk/httputil/progress", | ||
visibility = ["//visibility:public"], | ||
deps = [ | ||
"//config", | ||
"@org_golang_x_term//:go_default_library", | ||
"@org_golang_x_term//:term", | ||
], | ||
) | ||
|
||
go_test( | ||
name = "progress_test", | ||
srcs = [ | ||
"progress_test.go", | ||
], | ||
srcs = ["progress_test.go"], | ||
embed = [":progress"], | ||
) |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
load("@io_bazel_rules_go//go:def.bzl", "go_library") | ||
load("@rules_go//go:def.bzl", "go_library") | ||
|
||
go_library( | ||
name = "versions", | ||
srcs = ["versions.go"], | ||
importpath = "github.com/bazelbuild/bazelisk/versions", | ||
visibility = ["//visibility:public"], | ||
deps = [ | ||
"@com_github_hashicorp_go_version//:go_default_library", | ||
"@com_github_hashicorp_go_version//:go-version", | ||
], | ||
) |
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,11 +1,8 @@ | ||
load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") | ||
load("@rules_go//go:def.bzl", "go_library") | ||
|
||
go_library( | ||
name = "ws", | ||
srcs = ["ws.go"], | ||
importpath = "github.com/bazelbuild/bazelisk/ws", | ||
visibility = ["//visibility:public"], | ||
deps = [ | ||
"@com_github_mitchellh_go_homedir//:go_default_library", | ||
], | ||
) |
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