diff --git a/.bazelrc b/.bazelrc index 17c3c1a3d4..470d75b2dd 100644 --- a/.bazelrc +++ b/.bazelrc @@ -1,15 +1,9 @@ # Enable bzl_mod support -# In order to properly use the swiftnav-bazel-registry your local netrc needs to be configured common --enable_bzlmod -common --registry=https://raw.githubusercontent.com/swift-nav/swiftnav-bazel-registry/refs/heads/main/ -common --registry=https://bcr.bazel.build common --@rules_swiftnav//cc:enable_bzlmod=true # Preparation for Bazel 8 behavior of paths in external (plus instead of tilde) common --incompatible_use_plus_in_repo_names -# Causes the build to default to the custom toolchain -build --incompatible_enable_cc_toolchain_resolution - # Compile all swift targets and all other codes with C++17 standards build --@rules_swiftnav//cc:cxx_standard=17 build --@rules_swiftnav//cc:global_cxx_standard=17 diff --git a/MODULE.bazel b/MODULE.bazel index 836e609ae2..e04a3c9cee 100644 --- a/MODULE.bazel +++ b/MODULE.bazel @@ -1,7 +1,13 @@ module(name = "libsbp", version = "0.1.0", compatibility_level = 1) bazel_dep(name = "platforms", version = "0.0.11") -bazel_dep(name = "rules_swiftnav", version = "0.8.0") +bazel_dep(name = "rules_swiftnav", version = "0.9.0") +# Use +git_override( + module_name = "rules_swiftnav", + remote = "https://github.com/swift-nav/rules_swiftnav.git", + commit = "1ae7bb57e5a1f1602759e81c9ee0f457b91e35f4", +) swift_cc_toolchain_ext = use_extension("@rules_swiftnav//cc:extensions.bzl", "swift_cc_toolchain_extension") use_repo( diff --git a/MODULE.bazel.lock b/MODULE.bazel.lock index 42acbacc8c..867997bb35 100644 --- a/MODULE.bazel.lock +++ b/MODULE.bazel.lock @@ -143,125 +143,7 @@ "https://bcr.bazel.build/modules/zlib/1.2.11/MODULE.bazel": "07b389abc85fdbca459b69e2ec656ae5622873af3f845e1c9d80fe179f3effa0", "https://bcr.bazel.build/modules/zlib/1.3.1.bcr.5/MODULE.bazel": "eec517b5bbe5492629466e11dae908d043364302283de25581e3eb944326c4ca", "https://bcr.bazel.build/modules/zlib/1.3.1.bcr.5/source.json": "22bc55c47af97246cfc093d0acf683a7869377de362b5d1c552c2c2e16b7a806", - "https://bcr.bazel.build/modules/zlib/1.3.1/MODULE.bazel": "751c9940dcfe869f5f7274e1295422a34623555916eb98c174c1e945594bf198", - "https://raw.githubusercontent.com/swift-nav/swiftnav-bazel-registry/refs/heads/main/bazel_registry.json": "not found", - "https://raw.githubusercontent.com/swift-nav/swiftnav-bazel-registry/refs/heads/main/modules/abseil-cpp/20210324.2/MODULE.bazel": "not found", - "https://raw.githubusercontent.com/swift-nav/swiftnav-bazel-registry/refs/heads/main/modules/abseil-cpp/20211102.0/MODULE.bazel": "not found", - "https://raw.githubusercontent.com/swift-nav/swiftnav-bazel-registry/refs/heads/main/modules/abseil-cpp/20230125.1/MODULE.bazel": "not found", - "https://raw.githubusercontent.com/swift-nav/swiftnav-bazel-registry/refs/heads/main/modules/abseil-cpp/20230802.0.bcr.1/MODULE.bazel": "not found", - "https://raw.githubusercontent.com/swift-nav/swiftnav-bazel-registry/refs/heads/main/modules/abseil-cpp/20230802.0/MODULE.bazel": "not found", - "https://raw.githubusercontent.com/swift-nav/swiftnav-bazel-registry/refs/heads/main/modules/abseil-cpp/20230802.1/MODULE.bazel": "not found", - "https://raw.githubusercontent.com/swift-nav/swiftnav-bazel-registry/refs/heads/main/modules/abseil-cpp/20240116.1/MODULE.bazel": "not found", - "https://raw.githubusercontent.com/swift-nav/swiftnav-bazel-registry/refs/heads/main/modules/aspect_bazel_lib/1.30.2/MODULE.bazel": "not found", - "https://raw.githubusercontent.com/swift-nav/swiftnav-bazel-registry/refs/heads/main/modules/bazel_features/1.1.1/MODULE.bazel": "not found", - "https://raw.githubusercontent.com/swift-nav/swiftnav-bazel-registry/refs/heads/main/modules/bazel_features/1.11.0/MODULE.bazel": "not found", - "https://raw.githubusercontent.com/swift-nav/swiftnav-bazel-registry/refs/heads/main/modules/bazel_features/1.15.0/MODULE.bazel": "not found", - "https://raw.githubusercontent.com/swift-nav/swiftnav-bazel-registry/refs/heads/main/modules/bazel_features/1.17.0/MODULE.bazel": "not found", - "https://raw.githubusercontent.com/swift-nav/swiftnav-bazel-registry/refs/heads/main/modules/bazel_features/1.18.0/MODULE.bazel": "not found", - "https://raw.githubusercontent.com/swift-nav/swiftnav-bazel-registry/refs/heads/main/modules/bazel_features/1.19.0/MODULE.bazel": "not found", - "https://raw.githubusercontent.com/swift-nav/swiftnav-bazel-registry/refs/heads/main/modules/bazel_features/1.30.0/MODULE.bazel": "not found", - "https://raw.githubusercontent.com/swift-nav/swiftnav-bazel-registry/refs/heads/main/modules/bazel_features/1.4.1/MODULE.bazel": "not found", - "https://raw.githubusercontent.com/swift-nav/swiftnav-bazel-registry/refs/heads/main/modules/bazel_features/1.9.1/MODULE.bazel": "not found", - "https://raw.githubusercontent.com/swift-nav/swiftnav-bazel-registry/refs/heads/main/modules/bazel_skylib/1.0.3/MODULE.bazel": "not found", - "https://raw.githubusercontent.com/swift-nav/swiftnav-bazel-registry/refs/heads/main/modules/bazel_skylib/1.1.1/MODULE.bazel": "not found", - "https://raw.githubusercontent.com/swift-nav/swiftnav-bazel-registry/refs/heads/main/modules/bazel_skylib/1.2.0/MODULE.bazel": "not found", - "https://raw.githubusercontent.com/swift-nav/swiftnav-bazel-registry/refs/heads/main/modules/bazel_skylib/1.2.1/MODULE.bazel": "not found", - "https://raw.githubusercontent.com/swift-nav/swiftnav-bazel-registry/refs/heads/main/modules/bazel_skylib/1.3.0/MODULE.bazel": "not found", - "https://raw.githubusercontent.com/swift-nav/swiftnav-bazel-registry/refs/heads/main/modules/bazel_skylib/1.4.1/MODULE.bazel": "not found", - "https://raw.githubusercontent.com/swift-nav/swiftnav-bazel-registry/refs/heads/main/modules/bazel_skylib/1.4.2/MODULE.bazel": "not found", - "https://raw.githubusercontent.com/swift-nav/swiftnav-bazel-registry/refs/heads/main/modules/bazel_skylib/1.5.0/MODULE.bazel": "not found", - "https://raw.githubusercontent.com/swift-nav/swiftnav-bazel-registry/refs/heads/main/modules/bazel_skylib/1.6.1/MODULE.bazel": "not found", - "https://raw.githubusercontent.com/swift-nav/swiftnav-bazel-registry/refs/heads/main/modules/bazel_skylib/1.7.0/MODULE.bazel": "not found", - "https://raw.githubusercontent.com/swift-nav/swiftnav-bazel-registry/refs/heads/main/modules/bazel_skylib/1.7.1/MODULE.bazel": "not found", - "https://raw.githubusercontent.com/swift-nav/swiftnav-bazel-registry/refs/heads/main/modules/buildozer/7.1.2/MODULE.bazel": "not found", - "https://raw.githubusercontent.com/swift-nav/swiftnav-bazel-registry/refs/heads/main/modules/check/0.15.2.bcr.1/MODULE.bazel": "not found", - "https://raw.githubusercontent.com/swift-nav/swiftnav-bazel-registry/refs/heads/main/modules/google_benchmark/1.8.2/MODULE.bazel": "not found", - "https://raw.githubusercontent.com/swift-nav/swiftnav-bazel-registry/refs/heads/main/modules/googletest/1.11.0/MODULE.bazel": "not found", - "https://raw.githubusercontent.com/swift-nav/swiftnav-bazel-registry/refs/heads/main/modules/googletest/1.13.0/MODULE.bazel": "not found", - "https://raw.githubusercontent.com/swift-nav/swiftnav-bazel-registry/refs/heads/main/modules/googletest/1.14.0.bcr.1/MODULE.bazel": "not found", - "https://raw.githubusercontent.com/swift-nav/swiftnav-bazel-registry/refs/heads/main/modules/googletest/1.14.0/MODULE.bazel": "not found", - "https://raw.githubusercontent.com/swift-nav/swiftnav-bazel-registry/refs/heads/main/modules/jsoncpp/1.9.5/MODULE.bazel": "not found", - "https://raw.githubusercontent.com/swift-nav/swiftnav-bazel-registry/refs/heads/main/modules/libpfm/4.11.0/MODULE.bazel": "not found", - "https://raw.githubusercontent.com/swift-nav/swiftnav-bazel-registry/refs/heads/main/modules/platforms/0.0.10/MODULE.bazel": "not found", - "https://raw.githubusercontent.com/swift-nav/swiftnav-bazel-registry/refs/heads/main/modules/platforms/0.0.11/MODULE.bazel": "not found", - "https://raw.githubusercontent.com/swift-nav/swiftnav-bazel-registry/refs/heads/main/modules/platforms/0.0.4/MODULE.bazel": "not found", - "https://raw.githubusercontent.com/swift-nav/swiftnav-bazel-registry/refs/heads/main/modules/platforms/0.0.5/MODULE.bazel": "not found", - "https://raw.githubusercontent.com/swift-nav/swiftnav-bazel-registry/refs/heads/main/modules/platforms/0.0.6/MODULE.bazel": "not found", - "https://raw.githubusercontent.com/swift-nav/swiftnav-bazel-registry/refs/heads/main/modules/platforms/0.0.7/MODULE.bazel": "not found", - "https://raw.githubusercontent.com/swift-nav/swiftnav-bazel-registry/refs/heads/main/modules/platforms/0.0.8/MODULE.bazel": "not found", - "https://raw.githubusercontent.com/swift-nav/swiftnav-bazel-registry/refs/heads/main/modules/protobuf/21.7/MODULE.bazel": "not found", - "https://raw.githubusercontent.com/swift-nav/swiftnav-bazel-registry/refs/heads/main/modules/protobuf/27.0/MODULE.bazel": "not found", - "https://raw.githubusercontent.com/swift-nav/swiftnav-bazel-registry/refs/heads/main/modules/protobuf/27.1/MODULE.bazel": "not found", - "https://raw.githubusercontent.com/swift-nav/swiftnav-bazel-registry/refs/heads/main/modules/protobuf/29.0-rc2/MODULE.bazel": "not found", - "https://raw.githubusercontent.com/swift-nav/swiftnav-bazel-registry/refs/heads/main/modules/protobuf/29.0/MODULE.bazel": "not found", - "https://raw.githubusercontent.com/swift-nav/swiftnav-bazel-registry/refs/heads/main/modules/protobuf/3.19.0/MODULE.bazel": "not found", - "https://raw.githubusercontent.com/swift-nav/swiftnav-bazel-registry/refs/heads/main/modules/pybind11_bazel/2.11.1/MODULE.bazel": "not found", - "https://raw.githubusercontent.com/swift-nav/swiftnav-bazel-registry/refs/heads/main/modules/re2/2023-09-01/MODULE.bazel": "not found", - "https://raw.githubusercontent.com/swift-nav/swiftnav-bazel-registry/refs/heads/main/modules/rules_android/0.1.1/MODULE.bazel": "not found", - "https://raw.githubusercontent.com/swift-nav/swiftnav-bazel-registry/refs/heads/main/modules/rules_cc/0.0.1/MODULE.bazel": "not found", - "https://raw.githubusercontent.com/swift-nav/swiftnav-bazel-registry/refs/heads/main/modules/rules_cc/0.0.10/MODULE.bazel": "not found", - "https://raw.githubusercontent.com/swift-nav/swiftnav-bazel-registry/refs/heads/main/modules/rules_cc/0.0.13/MODULE.bazel": "not found", - "https://raw.githubusercontent.com/swift-nav/swiftnav-bazel-registry/refs/heads/main/modules/rules_cc/0.0.14/MODULE.bazel": "not found", - "https://raw.githubusercontent.com/swift-nav/swiftnav-bazel-registry/refs/heads/main/modules/rules_cc/0.0.15/MODULE.bazel": "not found", - "https://raw.githubusercontent.com/swift-nav/swiftnav-bazel-registry/refs/heads/main/modules/rules_cc/0.0.16/MODULE.bazel": "not found", - "https://raw.githubusercontent.com/swift-nav/swiftnav-bazel-registry/refs/heads/main/modules/rules_cc/0.0.2/MODULE.bazel": "not found", - "https://raw.githubusercontent.com/swift-nav/swiftnav-bazel-registry/refs/heads/main/modules/rules_cc/0.0.6/MODULE.bazel": "not found", - "https://raw.githubusercontent.com/swift-nav/swiftnav-bazel-registry/refs/heads/main/modules/rules_cc/0.0.8/MODULE.bazel": "not found", - "https://raw.githubusercontent.com/swift-nav/swiftnav-bazel-registry/refs/heads/main/modules/rules_cc/0.0.9/MODULE.bazel": "not found", - "https://raw.githubusercontent.com/swift-nav/swiftnav-bazel-registry/refs/heads/main/modules/rules_cc/0.1.1/MODULE.bazel": "not found", - "https://raw.githubusercontent.com/swift-nav/swiftnav-bazel-registry/refs/heads/main/modules/rules_foreign_cc/0.13.0/MODULE.bazel": "not found", - "https://raw.githubusercontent.com/swift-nav/swiftnav-bazel-registry/refs/heads/main/modules/rules_foreign_cc/0.9.0/MODULE.bazel": "not found", - "https://raw.githubusercontent.com/swift-nav/swiftnav-bazel-registry/refs/heads/main/modules/rules_fuzzing/0.5.2/MODULE.bazel": "not found", - "https://raw.githubusercontent.com/swift-nav/swiftnav-bazel-registry/refs/heads/main/modules/rules_java/4.0.0/MODULE.bazel": "not found", - "https://raw.githubusercontent.com/swift-nav/swiftnav-bazel-registry/refs/heads/main/modules/rules_java/5.3.5/MODULE.bazel": "not found", - "https://raw.githubusercontent.com/swift-nav/swiftnav-bazel-registry/refs/heads/main/modules/rules_java/6.0.0/MODULE.bazel": "not found", - "https://raw.githubusercontent.com/swift-nav/swiftnav-bazel-registry/refs/heads/main/modules/rules_java/6.4.0/MODULE.bazel": "not found", - "https://raw.githubusercontent.com/swift-nav/swiftnav-bazel-registry/refs/heads/main/modules/rules_java/6.5.2/MODULE.bazel": "not found", - "https://raw.githubusercontent.com/swift-nav/swiftnav-bazel-registry/refs/heads/main/modules/rules_java/7.10.0/MODULE.bazel": "not found", - "https://raw.githubusercontent.com/swift-nav/swiftnav-bazel-registry/refs/heads/main/modules/rules_java/7.12.2/MODULE.bazel": "not found", - "https://raw.githubusercontent.com/swift-nav/swiftnav-bazel-registry/refs/heads/main/modules/rules_java/7.2.0/MODULE.bazel": "not found", - "https://raw.githubusercontent.com/swift-nav/swiftnav-bazel-registry/refs/heads/main/modules/rules_java/7.3.2/MODULE.bazel": "not found", - "https://raw.githubusercontent.com/swift-nav/swiftnav-bazel-registry/refs/heads/main/modules/rules_java/7.6.1/MODULE.bazel": "not found", - "https://raw.githubusercontent.com/swift-nav/swiftnav-bazel-registry/refs/heads/main/modules/rules_java/8.12.0/MODULE.bazel": "not found", - "https://raw.githubusercontent.com/swift-nav/swiftnav-bazel-registry/refs/heads/main/modules/rules_jvm_external/4.4.2/MODULE.bazel": "not found", - "https://raw.githubusercontent.com/swift-nav/swiftnav-bazel-registry/refs/heads/main/modules/rules_jvm_external/5.1/MODULE.bazel": "not found", - "https://raw.githubusercontent.com/swift-nav/swiftnav-bazel-registry/refs/heads/main/modules/rules_jvm_external/5.2/MODULE.bazel": "not found", - "https://raw.githubusercontent.com/swift-nav/swiftnav-bazel-registry/refs/heads/main/modules/rules_jvm_external/5.3/MODULE.bazel": "not found", - "https://raw.githubusercontent.com/swift-nav/swiftnav-bazel-registry/refs/heads/main/modules/rules_jvm_external/6.1/MODULE.bazel": "not found", - "https://raw.githubusercontent.com/swift-nav/swiftnav-bazel-registry/refs/heads/main/modules/rules_jvm_external/6.3/MODULE.bazel": "not found", - "https://raw.githubusercontent.com/swift-nav/swiftnav-bazel-registry/refs/heads/main/modules/rules_kotlin/1.9.0/MODULE.bazel": "not found", - "https://raw.githubusercontent.com/swift-nav/swiftnav-bazel-registry/refs/heads/main/modules/rules_kotlin/1.9.6/MODULE.bazel": "not found", - "https://raw.githubusercontent.com/swift-nav/swiftnav-bazel-registry/refs/heads/main/modules/rules_license/0.0.3/MODULE.bazel": "not found", - "https://raw.githubusercontent.com/swift-nav/swiftnav-bazel-registry/refs/heads/main/modules/rules_license/0.0.7/MODULE.bazel": "not found", - "https://raw.githubusercontent.com/swift-nav/swiftnav-bazel-registry/refs/heads/main/modules/rules_license/1.0.0/MODULE.bazel": "not found", - "https://raw.githubusercontent.com/swift-nav/swiftnav-bazel-registry/refs/heads/main/modules/rules_oci/1.0.0/MODULE.bazel": "not found", - "https://raw.githubusercontent.com/swift-nav/swiftnav-bazel-registry/refs/heads/main/modules/rules_pkg/0.7.0/MODULE.bazel": "not found", - "https://raw.githubusercontent.com/swift-nav/swiftnav-bazel-registry/refs/heads/main/modules/rules_pkg/1.0.1/MODULE.bazel": "not found", - "https://raw.githubusercontent.com/swift-nav/swiftnav-bazel-registry/refs/heads/main/modules/rules_proto/4.0.0/MODULE.bazel": "not found", - "https://raw.githubusercontent.com/swift-nav/swiftnav-bazel-registry/refs/heads/main/modules/rules_proto/5.3.0-21.7/MODULE.bazel": "not found", - "https://raw.githubusercontent.com/swift-nav/swiftnav-bazel-registry/refs/heads/main/modules/rules_proto/6.0.2/MODULE.bazel": "not found", - "https://raw.githubusercontent.com/swift-nav/swiftnav-bazel-registry/refs/heads/main/modules/rules_proto/7.0.2/MODULE.bazel": "not found", - "https://raw.githubusercontent.com/swift-nav/swiftnav-bazel-registry/refs/heads/main/modules/rules_python/0.10.2/MODULE.bazel": "not found", - "https://raw.githubusercontent.com/swift-nav/swiftnav-bazel-registry/refs/heads/main/modules/rules_python/0.23.1/MODULE.bazel": "not found", - "https://raw.githubusercontent.com/swift-nav/swiftnav-bazel-registry/refs/heads/main/modules/rules_python/0.25.0/MODULE.bazel": "not found", - "https://raw.githubusercontent.com/swift-nav/swiftnav-bazel-registry/refs/heads/main/modules/rules_python/0.28.0/MODULE.bazel": "not found", - "https://raw.githubusercontent.com/swift-nav/swiftnav-bazel-registry/refs/heads/main/modules/rules_python/0.31.0/MODULE.bazel": "not found", - "https://raw.githubusercontent.com/swift-nav/swiftnav-bazel-registry/refs/heads/main/modules/rules_python/0.4.0/MODULE.bazel": "not found", - "https://raw.githubusercontent.com/swift-nav/swiftnav-bazel-registry/refs/heads/main/modules/rules_python/0.40.0/MODULE.bazel": "not found", - "https://raw.githubusercontent.com/swift-nav/swiftnav-bazel-registry/refs/heads/main/modules/rules_shell/0.2.0/MODULE.bazel": "not found", - "https://raw.githubusercontent.com/swift-nav/swiftnav-bazel-registry/refs/heads/main/modules/rules_shell/0.3.0/MODULE.bazel": "not found", - "https://raw.githubusercontent.com/swift-nav/swiftnav-bazel-registry/refs/heads/main/modules/rules_swiftnav/0.8.0/MODULE.bazel": "59e0c6e7fc53b387a46e3cf6266433b610d0bdd39bae4030edb0fda780cf9159", - "https://raw.githubusercontent.com/swift-nav/swiftnav-bazel-registry/refs/heads/main/modules/rules_swiftnav/0.8.0/source.json": "2149e98a330bb63e452913f44fb6459718f7f72f1ffa34b97f4b87b642f67834", - "https://raw.githubusercontent.com/swift-nav/swiftnav-bazel-registry/refs/heads/main/modules/stardoc/0.5.0/MODULE.bazel": "not found", - "https://raw.githubusercontent.com/swift-nav/swiftnav-bazel-registry/refs/heads/main/modules/stardoc/0.5.1/MODULE.bazel": "not found", - "https://raw.githubusercontent.com/swift-nav/swiftnav-bazel-registry/refs/heads/main/modules/stardoc/0.5.3/MODULE.bazel": "not found", - "https://raw.githubusercontent.com/swift-nav/swiftnav-bazel-registry/refs/heads/main/modules/stardoc/0.5.6/MODULE.bazel": "not found", - "https://raw.githubusercontent.com/swift-nav/swiftnav-bazel-registry/refs/heads/main/modules/stardoc/0.7.0/MODULE.bazel": "not found", - "https://raw.githubusercontent.com/swift-nav/swiftnav-bazel-registry/refs/heads/main/modules/stardoc/0.7.1/MODULE.bazel": "not found", - "https://raw.githubusercontent.com/swift-nav/swiftnav-bazel-registry/refs/heads/main/modules/upb/0.0.0-20220923-a547704/MODULE.bazel": "not found", - "https://raw.githubusercontent.com/swift-nav/swiftnav-bazel-registry/refs/heads/main/modules/zlib/1.2.11/MODULE.bazel": "not found", - "https://raw.githubusercontent.com/swift-nav/swiftnav-bazel-registry/refs/heads/main/modules/zlib/1.3.1.bcr.5/MODULE.bazel": "not found", - "https://raw.githubusercontent.com/swift-nav/swiftnav-bazel-registry/refs/heads/main/modules/zlib/1.3.1/MODULE.bazel": "not found" + "https://bcr.bazel.build/modules/zlib/1.3.1/MODULE.bazel": "751c9940dcfe869f5f7274e1295422a34623555916eb98c174c1e945594bf198" }, "selectedYankedVersions": {}, "moduleExtensions": { @@ -1227,7 +1109,7 @@ "@@rules_swiftnav+//cc:extensions.bzl%swift_cc_toolchain_extension": { "general": { "bzlTransitiveDigest": "zDwq2yBSEJXdECtks4+trENu8MzrMfkm5FDsxbO1KrE=", - "usagesDigest": "oNQWB4SI+ETVTR6JDzahQWy4eoY1yZoH41ng5TbhjdM=", + "usagesDigest": "rtfcApElqhP44aY50+Y3mGLsaIciFtEiQ+1JUChpqyg=", "recordedFileInputs": {}, "recordedDirentsInputs": {}, "envVariables": {},