Skip to content

Commit

Permalink
Update many dependencies
Browse files Browse the repository at this point in the history
Go dependencies are updated and moved to a root go.mod file
Bazel dependencies have been migrated to a MODULE.bazel file
Goma has been patched to use the same version of protobuf and abseil
that bazel is building with
golint has been replaced by nogo as golint becomes very slow when a
go.mod file is present
The //external folder has been deleted and all contents is moved to
//third_party/...

Test: Presubmits pass, local testing has been done on linux, mac and
windows
Bug: b/303263153

Change-Id: Iefaf2ccc56d03d4a81c5d138051df67602fa97f1
GitOrigin-RevId: 62a5c1331e93dde91abb90149d208dabdcd9f1b1
  • Loading branch information
bentekkie authored and copybara-github committed Jun 17, 2024
1 parent 89d6134 commit 4bdf44f
Show file tree
Hide file tree
Showing 74 changed files with 1,265 additions and 1,054 deletions.
9 changes: 8 additions & 1 deletion .bazelrc
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,9 @@ build:windows --action_env=CGO_ENABLED=0
build:linux --incompatible_enable_cc_toolchain_resolution
build:linux --extra_toolchains=@linux_android1404//:cc-toolchain

# Ninja writes to the client/out directory in the goma repository
common:linux --strategy=CcNinjaMakeRule=remote,processwrapper-sandbox


# Get the current workspace git commit SHA as a variable for use with versioning.
# See https://docs.bazel.build/versions/master/user-manual.html#flag--workspace_status_command.
Expand Down Expand Up @@ -99,4 +102,8 @@ build --@llvm_zlib//:llvm_enable_zlib=false
build:goma --//:include_scanner=goma

build:racedetection --@io_bazel_rules_go//go/config:race --@io_bazel_rules_go//go/config:pure=false
test:racedetection --@io_bazel_rules_go//go/config:race --@io_bazel_rules_go//go/config:pure=false
test:racedetection --@io_bazel_rules_go//go/config:race --@io_bazel_rules_go//go/config:pure=false

common:nonogo --@@//tools:no_nogo

common --lockfile_mode=off
9 changes: 6 additions & 3 deletions BUILD.bazel
Original file line number Diff line number Diff line change
@@ -1,15 +1,18 @@
load("@bazel_gazelle//:def.bzl", "gazelle")
load("//:settings.bzl", "include_scanner_rule")
load("@bazel_skylib//rules:common_settings.bzl", "bool_flag")
load("@gazelle//:def.bzl", "gazelle")
load("@rules_pkg//pkg:install.bzl", "pkg_install")
load("@rules_pkg//pkg:mappings.bzl", "pkg_attributes", "pkg_filegroup", "pkg_files", "strip_prefix")
load("@rules_pkg//pkg:tar.bzl", "pkg_tar")
load("@rules_pkg//pkg:install.bzl", "pkg_install")
load("//:settings.bzl", "include_scanner_rule")

exports_files(["go.mod"])

# gazelle:prefix github.com/bazelbuild/reclient
# gazelle:exclude docker
# gazelle:exclude **/*.pb.go
gazelle(
name = "gazelle",
build_tags = ["goma"],
)

platform(
Expand Down
Loading

0 comments on commit 4bdf44f

Please sign in to comment.