-
Notifications
You must be signed in to change notification settings - Fork 51
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- bump bazel to 6.4.0 - bump rules_go, gazelle, platforms - enable bzlmod - clear WORKSPACE (cannot remove yet due to examples) - remove `gofmt`, #136 - remove Go MacOS x86_64 tests, #10
Motiejus Jakštys
authored and
Buildkite Bot
committed
Dec 14, 2023
1 parent
f3c605e
commit b9e27a1
Showing
14 changed files
with
2,114 additions
and
739 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 +1 @@ | ||
6.3.0 | ||
6.4.0 |
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
Large diffs are not rendered by default.
Oops, something went wrong.
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,86 +0,0 @@ | ||
workspace(name = "hermetic_cc_toolchain") | ||
|
||
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") | ||
|
||
RULESGO_VERSION = "v0.39.1" | ||
|
||
http_archive( | ||
name = "io_bazel_rules_go", | ||
sha256 = "6dc2da7ab4cf5d7bfc7c949776b1b7c733f05e56edc4bcd9022bb249d2e2a996", | ||
urls = [ | ||
"https://mirror.bazel.build/github.com/bazelbuild/rules_go/releases/download/{0}/rules_go-{0}.zip".format(RULESGO_VERSION), | ||
"https://github.com/bazelbuild/rules_go/releases/download/{0}/rules_go-{0}.zip".format(RULESGO_VERSION), | ||
], | ||
) | ||
|
||
PROTOBUF_VERSION = "23.0" | ||
|
||
http_archive( | ||
name = "com_google_protobuf", | ||
sha256 = "b29fc5fc13926f347b7a8b676ae1e63f7ccdb92c2fc8ca326bc3a883dcc168ac", | ||
strip_prefix = "protobuf-{}".format(PROTOBUF_VERSION), | ||
urls = [ | ||
"https://github.com/protocolbuffers/protobuf/releases/download/v{0}/protobuf-{0}.tar.gz".format(PROTOBUF_VERSION), | ||
], | ||
) | ||
|
||
load("@com_google_protobuf//:protobuf_deps.bzl", "protobuf_deps") | ||
|
||
protobuf_deps() | ||
|
||
GAZELLE_VERSION = "v0.30.0" | ||
|
||
http_archive( | ||
name = "bazel_gazelle", | ||
sha256 = "727f3e4edd96ea20c29e8c2ca9e8d2af724d8c7778e7923a854b2c80952bc405", | ||
urls = [ | ||
"https://mirror.bazel.build/github.com/bazelbuild/bazel-gazelle/releases/download/{0}/bazel-gazelle-{0}.tar.gz".format(GAZELLE_VERSION), | ||
"https://github.com/bazelbuild/bazel-gazelle/releases/download/{0}/bazel-gazelle-{0}.tar.gz".format(GAZELLE_VERSION), | ||
], | ||
) | ||
|
||
load("@io_bazel_rules_go//go:deps.bzl", "go_download_sdk", "go_register_toolchains", "go_rules_dependencies") | ||
load("@bazel_gazelle//:deps.bzl", "gazelle_dependencies") | ||
|
||
go_rules_dependencies() | ||
|
||
# use latest stable. | ||
go_download_sdk( | ||
name = "go_sdk", | ||
version = "1.20.4", | ||
) | ||
|
||
go_register_toolchains() | ||
|
||
load("//:repositories.bzl", "go_repositories") | ||
|
||
# gazelle:repository_macro repositories.bzl%go_repositories | ||
go_repositories() | ||
|
||
gazelle_dependencies(go_repository_default_config = "@//:WORKSPACE") | ||
|
||
load( | ||
"//toolchain:defs.bzl", | ||
zig_toolchains = "toolchains", | ||
) | ||
|
||
zig_toolchains() | ||
|
||
register_toolchains( | ||
# if no `--platform` is specified, these toolchains will be used for | ||
# (linux,darwin,windows)x(amd64,arm64) | ||
"@zig_sdk//toolchain:linux_amd64_gnu.2.28", | ||
"@zig_sdk//toolchain:linux_arm64_gnu.2.28", | ||
"@zig_sdk//toolchain:darwin_amd64", | ||
"@zig_sdk//toolchain:darwin_arm64", | ||
"@zig_sdk//toolchain:windows_amd64", | ||
"@zig_sdk//toolchain:windows_arm64", | ||
|
||
# amd64 toolchains for libc-aware platforms: | ||
"@zig_sdk//libc_aware/toolchain:linux_amd64_gnu.2.28", | ||
"@zig_sdk//libc_aware/toolchain:linux_amd64_gnu.2.31", | ||
"@zig_sdk//libc_aware/toolchain:linux_amd64_musl", | ||
# arm64 toolchains for libc-aware platforms: | ||
"@zig_sdk//libc_aware/toolchain:linux_arm64_gnu.2.28", | ||
"@zig_sdk//libc_aware/toolchain:linux_arm64_musl", | ||
) | ||
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,16 +1,16 @@ | ||
module github.com/uber/hermetic_cc_toolchain | ||
|
||
go 1.19 | ||
go 1.21.1 | ||
|
||
require ( | ||
github.com/bazelbuild/buildtools v0.0.0-20230510134650-37bd1811516d | ||
github.com/stretchr/testify v1.8.2 | ||
github.com/bazelbuild/buildtools v0.0.0-20231115204819-d4c9dccdfbb1 | ||
github.com/stretchr/testify v1.8.4 | ||
) | ||
|
||
require ( | ||
github.com/davecgh/go-spew v1.1.1 // indirect | ||
github.com/golang/protobuf v1.5.3 // indirect | ||
github.com/golang/protobuf v1.4.3 // indirect | ||
github.com/pmezard/go-difflib v1.0.0 // indirect | ||
google.golang.org/protobuf v1.30.0 // indirect | ||
google.golang.org/protobuf v1.25.0 // indirect | ||
gopkg.in/yaml.v3 v3.0.1 // indirect | ||
) |
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 was deleted.
Oops, something went wrong.
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,17 +1,6 @@ | ||
load("@bazel_gazelle//:def.bzl", "gazelle") | ||
load("@gazelle//:def.bzl", "gazelle") | ||
|
||
gazelle( | ||
name = "gazelle", | ||
visibility = ["//visibility:public"], | ||
) | ||
|
||
gazelle( | ||
name = "gazelle-update-repos", | ||
args = [ | ||
"-from_file=go.mod", | ||
"-to_macro=repositories.bzl%go_repositories", | ||
"-prune", | ||
], | ||
command = "update-repos", | ||
visibility = ["//visibility:public"], | ||
) |
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