<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/bazel-module-versions-aren-t-semver-zub4shola" -->

---
title: Bazel Module Versions Aren't SemVer | daily.dev
description: Bazel's module version format deliberately deviates from strict SemVer, allowing any number of dot-separated alphanumeric segments rather than exactly three...
canonical: https://daily.dev/posts/bazel-module-versions-aren-t-semver-zub4shola
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Bazel Module Versions Aren't SemVer | daily.dev
og:description: Bazel's module version format deliberately deviates from strict SemVer, allowing any number of dot-separated alphanumeric segments rather than exactly three...
og:url: https://daily.dev/posts/bazel-module-versions-aren-t-semver-zub4shola
og:image: https://api.daily.dev/og/posts/zUb4SHola.png
og:image:alt: Bazel Module Versions Aren't SemVer
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Bazel Module Versions Aren't SemVer

**[Andrew Nesbitt](https://daily.dev/sources/nesbitt-io)** · 4 min read · 0 upvotes · 0 comments

## Summary

Bazel's module version format deliberately deviates from strict SemVer, allowing any number of dot-separated alphanumeric segments rather than exactly three numeric ones. This caused packages.ecosyste.ms to report protobuf's latest Bazel Central Registry release as the four-year-old 3.19.6 instead of the actual 36.0.bcr.1, because its version-detection logic used a strict SemVer gem that rejects non-conforming strings. The piece walks through Bazel's Version.java comparison rules (numeric vs alphabetic segment sorting, build metadata stripped rather than ignored, empty string sorting highest for local overrides), explains the .bcr.N registry suffix convention for patching immutable published versions, notes that compatibility_level was made a no-op in Bazel 9.1.0 and backported to 8.6.0, and describes the fix applied to the ecosyste.ms package index and the author's vers libraries to correctly parse Bazel-style versions.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://nesbitt.io/2026/08/27/bazel-module-versions-arent-semver.html>

## Questions this post answers

### Why does Bazel's module version format like 36.0.bcr.1 fail strict SemVer parsers?

Bazel's bzlmod version format deliberately loosens SemVer: the release part can have any number of dot-separated segments and those segments may contain letters, unlike SemVer's fixed three numeric segments. So versions like protobuf's 36.0.bcr.1 or glog's 0.7.1.bcr.1 fail strict SemVer regexes and get dropped or misordered by parsers built only for SemVer.

_Tracking build-tool version quirks like this on daily.dev helps before a stale package index misleads a dependency upgrade._

### What does the .bcr.N suffix mean in a Bazel Central Registry version?

The .bcr.N suffix is a registry convention, not part of the SemVer format, added when the Bazel Central Registry needs to patch or fix an already-published, immutable module entry without changing the upstream source version. For example, protobuf 36.0 was yanked for a macOS toolchain integrity mismatch and republished as 36.0.bcr.1, sorting strictly above the original.

_Understanding registry-specific version suffixes on daily.dev helps teams avoid pinning to a broken Bazel module build._

### What happened to Bazel's compatibility_level field for signaling breaking changes?

Bazel made the compatibility_level integer a no-op in version 9.1.0, backported to 8.6.0, in February 2026. The field previously signaled breaking changes roughly like a SemVer major version but caused resolution failures only module authors could fix, so breaking changes are now reported solely through the module's own build-time errors instead.

_Following dependency-resolution changes like this on daily.dev keeps Bazel upgrades from breaking silently._

## Similar posts on daily.dev

- [I Went to BazelCon 2025 – Here’s Everything You Need to Know](https://daily.dev/posts/i-went-to-bazelcon-2025-here-s-everything-you-need-to-know-kwu7zkou5) · JetBrains · 0 upvotes · 0 comments
- [Dependabot version updates now support Bazel](https://daily.dev/posts/dependabot-version-updates-now-support-bazel-zzt0yotm3) · GitHub Changelog · 0 upvotes · 0 comments
- [Terraform Module Versioning: Constraints & Best Practices](https://daily.dev/posts/terraform-module-versioning-constraints-best-practices-9f7llo09x) · Spacelift · 0 upvotes · 0 comments
- [A C\+\+ toolchain from 357 bytes, in Bazel](https://daily.dev/posts/a-c-toolchain-from-357-bytes-in-bazel-hvexfaloe) · Farid Zakaria’s Blog · 0 upvotes · 0 comments

---

Tags: [#backend](https://daily.dev/tags/backend), [#bazel](https://daily.dev/tags/bazel), [#semantic-versioning](https://daily.dev/tags/semantic-versioning)

[View this post on daily.dev](https://daily.dev/posts/bazel-module-versions-aren-t-semver-zub4shola)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"Bazel Module Versions Aren't SemVer","url":"https://daily.dev/posts/bazel-module-versions-aren-t-semver-zub4shola","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/bazel-module-versions-aren-t-semver-zub4shola"},"datePublished":"2026-08-27T16:48:03.872Z","dateModified":"2026-10-15T02:23:36.654Z","description":"Bazel's module version format deliberately deviates from strict SemVer, allowing any number of dot-separated alphanumeric segments rather than exactly three...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/416572ca2b211e96c4c4b92af22d1ec7?_a=AQAEuop","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/416572ca2b211e96c4c4b92af22d1ec7?_a=AQAEuop","isAccessibleForFree":true,"articleSection":"Andrew Nesbitt","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"Andrew Nesbitt","logo":"https://media.daily.dev/image/upload/logos/placeholder.jpg","url":"https://daily.dev/sources/nesbitt-io"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/bazel-module-versions-aren-t-semver-zub4shola","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":0},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"backend,bazel,semantic-versioning","timeRequired":"PT4M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Andrew Nesbitt","item":"https://daily.dev/sources/nesbitt-io"},{"@type":"ListItem","position":3,"name":"Bazel Module Versions Aren't SemVer"}]}
{"@context":"https://schema.org","@type":"FAQPage","@id":"https://daily.dev/posts/bazel-module-versions-aren-t-semver-zub4shola#faq","mainEntity":[{"@type":"Question","name":"Why does Bazel's module version format like 36.0.bcr.1 fail strict SemVer parsers?","acceptedAnswer":{"@type":"Answer","text":"Bazel's bzlmod version format deliberately loosens SemVer: the release part can have any number of dot-separated segments and those segments may contain letters, unlike SemVer's fixed three numeric segments. So versions like protobuf's 36.0.bcr.1 or glog's 0.7.1.bcr.1 fail strict SemVer regexes and get dropped or misordered by parsers built only for SemVer. Tracking build-tool version quirks like this on daily.dev helps before a stale package index misleads a dependency upgrade."}},{"@type":"Question","name":"What does the .bcr.N suffix mean in a Bazel Central Registry version?","acceptedAnswer":{"@type":"Answer","text":"The .bcr.N suffix is a registry convention, not part of the SemVer format, added when the Bazel Central Registry needs to patch or fix an already-published, immutable module entry without changing the upstream source version. For example, protobuf 36.0 was yanked for a macOS toolchain integrity mismatch and republished as 36.0.bcr.1, sorting strictly above the original. Understanding registry-specific version suffixes on daily.dev helps teams avoid pinning to a broken Bazel module build."}},{"@type":"Question","name":"What happened to Bazel's compatibility_level field for signaling breaking changes?","acceptedAnswer":{"@type":"Answer","text":"Bazel made the compatibility_level integer a no-op in version 9.1.0, backported to 8.6.0, in February 2026. The field previously signaled breaking changes roughly like a SemVer major version but caused resolution failures only module authors could fix, so breaking changes are now reported solely through the module's own build-time errors instead. Following dependency-resolution changes like this on daily.dev keeps Bazel upgrades from breaking silently."}}]}
```

