Skip to content

Update Bazel dependencies to latest stable versions #266

Merged
dmehala merged 1 commit intoDataDog:mainfrom
mmorel-35:deps
Dec 23, 2025
Merged

Update Bazel dependencies to latest stable versions #266
dmehala merged 1 commit intoDataDog:mainfrom
mmorel-35:deps

Conversation

@mmorel-35
Copy link
Contributor

Description

Updated all Bazel dependencies to current stable releases from Bazel Central Registry:

  • abseil-cpp: 20230125.1 → 20250814.1 (2+ years of updates)
  • bazel_skylib: 1.2.1 → 1.8.2
  • rules_cc: 0.0.9 → 0.2.14
  • platforms: 0.0.11 → 1.0.0

Changes applied to both MODULE.bazel (bzlmod) and WORKSPACE to maintain compatibility across build modes. Added Bazel ecosystem support to Dependabot for automated monthly updates.

Bazel 9 Compatibility Fixes:

  • Enabled bzlmod by default in .bazelrc (WORKSPACE is deprecated in Bazel 9)
  • Added explicit load("@rules_cc//cc:defs.bzl", "cc_library") in BUILD.bazel (native C++ rules removed from built-ins in Bazel 9)
  • Added rules_cc http_archive and compatibility_proxy_repo() to WORKSPACE for proper rules_cc setup
  • Tested with Bazel 9.0.0rc3 and verified backward compatibility with Bazel 8.5.0

Code Quality Improvements:

  • Sorted bazel_dep entries alphabetically in MODULE.bazel
  • Sorted Dependabot ecosystems alphabetically
  • Applied buildifier formatting to all Bazel files (BUILD.bazel, WORKSPACE, MODULE.bazel)

Motivation

Dependencies were significantly outdated. Abseil-cpp was 2+ years behind, missing critical bug fixes and API improvements. Modern Bazel tooling requires current dependency versions for optimal performance and security.

With Bazel 9 on the horizon, full compatibility is essential. In Bazel 9, native C++ rules (cc_library, cc_binary, etc.) have been removed from built-ins and must be explicitly loaded from @rules_cc. These changes ensure the codebase works with both current and future Bazel versions.

…ompatibility

Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com>
Copy link
Collaborator

@dmehala dmehala left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Thank you @mmorel-35

@dmehala dmehala merged commit 812ac9e into DataDog:main Dec 23, 2025
15 of 21 checks passed
@mmorel-35 mmorel-35 deleted the deps branch December 23, 2025 17:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants