Skip to content

Commit

Permalink
Project import generated by Copybara.
Browse files Browse the repository at this point in the history
GitOrigin-RevId: e7df75a3278cfffa470faa5b370304eebbd24171
  • Loading branch information
Aalyria Technologies, Inc. authored and ciarand committed Mar 7, 2024
1 parent 487edf1 commit 0162e5c
Show file tree
Hide file tree
Showing 89 changed files with 5,956 additions and 2,790 deletions.
56 changes: 4 additions & 52 deletions .bazelrc
Original file line number Diff line number Diff line change
Expand Up @@ -12,56 +12,8 @@
# See the License for the specific language governing permissions and
# limitations under the License.

##
# Set C++20 as the standard version to use via BAZEL_CXXOPTS environment
# variable, per:
# - https://github.com/bazelbuild/bazel/blob/master/tools/cpp/unix_cc_configure.bzl
#
# For information on C/C++ compiler warnings see:
# - https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html
#
# TODO: remove -Wno-deprecated-declarations and live a healthier, happier life.
#
# TODO: remove
# -Wno-sign-compare (https://github.com/protocolbuffers/protobuf/issues/12432)
# when protobuf builds without it.
#
# TODO: remove
# -Wno-comment
# -Wno-class-memaccess
# -Wno-unused-variable
# -Wno-unused-function
# when grpc builds without them.
#
# TODO: remove the -Wno-stringop-overflow flag once we upgrade our
# protobuf dep past v3.22.0~ish
# See: https://github.com/protocolbuffers/protobuf/commit/887daf693fa17d7baf7b55b278132a7115beae30
# See: https://github.com/protocolbuffers/protobuf/issues/6419
##
build --action_env=BAZEL_CXXOPTS='-std=c++20:-Wall:-Werror:-Wno-deprecated-declarations:-Wno-sign-compare:-Wno-comment:-Wno-class-memaccess:-Wno-unused-variable:-Wno-unused-function:-Wno-stringop-overflow'
build --features=external_include_paths

# Go 1.20 introduced some changes that can cause unnecessary rebuilds without
# this flag: See https://github.com/bazelbuild/rules_go/issues/3430.
build --experimental_output_directory_naming_scheme=diff_against_baseline

##
# Don't automatically create __init__.py files in the runfiles of
# Python targets.
# See: https://github.com/bazelbuild/bazel/issues/10076
#
# This is motivated by our python proto library targets which produce
# overlapping import paths.
##
build --incompatible_default_to_explicit_init_py

##
# Enable hermetic testing and compilation of Java using a JVM downloaded from a
# remote repository.
##
build --tool_java_runtime_version=remotejdk_17 --java_runtime_version=remotejdk_17
import %workspace%/common.bazelrc

##
# Allow Java constructs compatible with the Java 17 specification.
##
build --tool_java_language_version=17 --java_language_version=17
# Enable bzlmod, which is the new system of managing external dependencies
# using a MODULE.bazel file instead of the legacy WORKSPACE system.
common --enable_bzlmod
2 changes: 1 addition & 1 deletion .bazelversion
Original file line number Diff line number Diff line change
@@ -1 +1 @@
6.2.1
7.0.0
51 changes: 51 additions & 0 deletions MODULE.bazel
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
# Copyright 2023 Aalyria Technologies, Inc., and its affiliates.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

module(name = "aalyria_api")

# NOTE: keep this version aligned with the (duplicated declaration) of
# @com_google_protobuf repo present in the WORKSPACE file. While most
# first-level dependencies in WORKSPACE depend on @com_google_protobuf, when
# the build executes on bazel 7 something is also referencing @protobuf, which
# if not overridden in MODULE.bazel (like below) defaults to @protobuf~3.19
# included in the bazel distribution itself.
bazel_dep(
name = "protobuf",
version = "23.1",
)
bazel_dep(name = "abseil-cpp", version = "20230802.0.bcr.1", repo_name = "com_google_absl")
bazel_dep(name = "aspect_bazel_lib", version = "2.1.0")
bazel_dep(name = "bazel_skylib", version = "1.5.0")
bazel_dep(name = "platforms", version = "0.0.8")
bazel_dep(name = "re2", version = "2023-09-01", repo_name = "com_google_re2")
bazel_dep(name = "rules_cc", version = "0.0.9")
bazel_dep(name = "rules_oci", version = "1.5.1")
bazel_dep(name = "rules_pkg", version = "0.9.1")
bazel_dep(name = "rules_go", version = "0.46.0")
bazel_dep(name = "gazelle", version = "0.35.0")

bazel_dep(name = "container_structure_test", version = "1.16.0", dev_dependency = True)

go_sdk = use_extension("@rules_go//go:extensions.bzl", "go_sdk")
go_sdk.download(version = "1.22.1")

oci = use_extension("@rules_oci//oci:extensions.bzl", "oci")
oci.pull(
name = "alpine_base",
digest = "sha256:21a3deaa0d32a8057914f36584b5288d2e5ecc984380bc0118285c70fa8c9300",
image = "docker.io/library/alpine",
#tag = "3.15.0",
platforms = ["linux/amd64"],
)
use_repo(oci, "alpine_base")
Loading

0 comments on commit 0162e5c

Please sign in to comment.