-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'public/main' into HEAD
- Loading branch information
Showing
29 changed files
with
10,367 additions
and
2,628 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# Required until this is the default; expected in Bazel 7 | ||
common --enable_bzlmod | ||
|
||
# Load any settings specific to the current user. | ||
# .bazelrc.user should appear in .gitignore so that settings are not shared with team members | ||
# This needs to be last statement in this | ||
# config, as the user configuration should be able to overwrite flags from this file. | ||
# See https://docs.bazel.build/versions/master/best-practices.html#bazelrc | ||
# (Note that we use .bazelrc.user so the file appears next to .bazelrc in directory listing, | ||
# rather than user.bazelrc as suggested in the Bazel docs) | ||
try-import %workspace%/.bazelrc.user |
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 |
---|---|---|
@@ -0,0 +1,135 @@ | ||
""" | ||
A bazel module for the https://github.com/gonzojive/heatpump project. | ||
""" | ||
|
||
module( | ||
name = "github-gonzojive-heatpump", | ||
version = "0.0.1", | ||
compatibility_level = 1, | ||
repo_name = "github-gonzojive-heatpump", | ||
) | ||
|
||
bazel_dep( | ||
name = "protobuf", | ||
version = "27.1", | ||
repo_name = "com_google_protobuf", | ||
) | ||
bazel_dep( | ||
name = "grpc", | ||
version = "1.65.0", | ||
repo_name = "com_github_grpc_grpc", | ||
) | ||
bazel_dep( | ||
name = "rules_proto", | ||
version = "6.0.2", | ||
) | ||
bazel_dep( | ||
name = "rules_go", | ||
version = "0.49.0", | ||
repo_name = "io_bazel_rules_go", | ||
) | ||
bazel_dep( | ||
name = "gazelle", | ||
version = "0.38.0", | ||
repo_name = "bazel_gazelle", | ||
) | ||
bazel_dep( | ||
name = "rules_oci", | ||
version = "1.8.0", | ||
) | ||
bazel_dep(name = "rules_pkg", version = "0.9.1") | ||
|
||
go_deps = use_extension("@bazel_gazelle//:extensions.bzl", "go_deps") | ||
go_deps.from_file(go_mod = "//:go.mod") | ||
|
||
# All *direct* Go dependencies of the module have to be listed explicitly. | ||
use_repo( | ||
go_deps, | ||
"com_github_adrg_xdg", | ||
"com_github_dgraph_io_badger_v3", | ||
"com_github_eclipse_paho_mqtt_golang", | ||
"com_github_go_oauth2_oauth2_v4", | ||
"com_github_goburrow_modbus", | ||
"com_github_goburrow_serial", | ||
"com_github_golang_glog", | ||
"com_github_golang_protobuf", | ||
"com_github_google_go_cmp", | ||
"com_github_google_go_containerregistry", | ||
"com_github_howeyc_crc16", | ||
"com_github_inhies_go_bytesize", | ||
"com_github_johnsiilver_golib", | ||
"com_github_martinlindhe_unit", | ||
"com_github_mtraver_iotcore", | ||
"com_github_rmrobinson_google_smart_home_action_go", | ||
"com_github_samber_lo", | ||
"com_github_stretchr_testify", | ||
"com_github_teambition_rrule_go", | ||
"com_github_yuin_goldmark", | ||
"com_google_cloud_go_firestore", | ||
"com_google_cloud_go_pubsub", | ||
"com_google_cloud_go_secretmanager", | ||
"org_golang_google_api", | ||
"org_golang_google_grpc", | ||
"org_golang_google_protobuf", | ||
"org_golang_x_crypto", | ||
"org_golang_x_net", | ||
"org_golang_x_oauth2", | ||
"org_golang_x_sync", | ||
"org_uber_go_multierr", | ||
"org_uber_go_zap", | ||
) | ||
go_deps.gazelle_override( | ||
directives = [ | ||
#"gazelle:build_file_proto_mode disable_global", | ||
"gazelle:proto disable", | ||
], | ||
path = "github.com/dgraph-io/badger/v3", | ||
) | ||
go_deps.gazelle_override( | ||
directives = [ | ||
"gazelle:proto disable", | ||
], | ||
path = "google.golang.org/grpc", | ||
) | ||
go_deps.archive_override( | ||
path = "github.com/rmrobinson/google-smart-home-action-go", | ||
sha256 = "1467fcada401f310784157ddfc419410f5eba77bc5eeb156cb8f7122f1ce6e23", | ||
strip_prefix = "google-smart-home-action-go-250c1e61f8f05926571d00c0072bae1602bd1fff", | ||
urls = [ | ||
"https://github.com/gonzojive/google-smart-home-action-go/archive/250c1e61f8f05926571d00c0072bae1602bd1fff.zip", | ||
], | ||
) | ||
|
||
oci = use_extension("@rules_oci//oci:extensions.bzl", "oci") | ||
|
||
# Declare external images you need to pull, for example: | ||
oci.pull( | ||
name = "distroless_base", | ||
digest = "sha256:1aae189e3baecbb4044c648d356ddb75025b2ba8d14cdc9c2a19ba784c90bfb9", | ||
image = "gcr.io/distroless/base", | ||
platforms = [ | ||
"linux/amd64", | ||
"linux/arm/v7", | ||
"linux/arm64/v8", | ||
"linux/ppc64le", | ||
"linux/s390x", | ||
], | ||
# Use tag = "latest" and then canonicalize with the buildozer command output | ||
# in a warning message. | ||
) | ||
|
||
# For each oci.pull call, repeat the "name" here to expose them as dependencies. | ||
use_repo(oci, "distroless_base") | ||
|
||
# Needed to resolve https://github.com/grpc/grpc-java/issues/11275. | ||
bazel_dep(name = "grpc-java", version = "1.64.0") | ||
|
||
http_jar = use_repo_rule("@bazel_tools//tools/build_defs/repo:http.bzl", "http_jar") | ||
|
||
http_jar( | ||
name = "firestore_emulator", | ||
sha256 = "489617f9c99d2733c884b7d6e58fe2808f5cb87c645edb967417690b8393c13e", | ||
urls = [ | ||
"https://storage.googleapis.com/firebase-preview-drop/emulator/cloud-firestore-emulator-v1.15.1.jar", | ||
], | ||
) |
Oops, something went wrong.