Skip to content

renovate.json: recognize sbt's scalaVersion := syntax - #14

Merged
halotukozak merged 2 commits into
mainfrom
fix-renovate-sbt-scalaversion-matcher
Aug 31, 2026
Merged

renovate.json: recognize sbt's scalaVersion := syntax#14
halotukozak merged 2 commits into
mainfrom
fix-renovate-sbt-scalaversion-matcher

Conversation

@halotukozak

@halotukozak halotukozak commented Aug 31, 2026

Copy link
Copy Markdown
Contributor

Summary

Two Renovate gaps found while investigating why README install snippets go stale:

1. sbt's scalaVersion := "..." syntax was never matched. Every repo's README documents scala-cli, sbt, and Mill install snippets. The "Scala language version" customManager only matched scala-cli's //> using scala and Mill's def scalaVersion = — sbt's scalaVersion := "..." (note the :=, not =) never matched, so that snippet silently never got bumped along with the other two.

Confirmed live on mrpc#55 (open): it bumps the scala-cli and mill blocks in README.md to 3.9.0, plus project.scala, but leaves scalaVersion := "3.9.0-RC4" untouched. Same gap present in mcodec's README right now.

2. made and alpaca's README.md is a symlink to docs/_docs/index.md. That's very likely why made#145 bumped project.scala's scala3 version but never touched the README at all (not even the two snippets the first fix above doesn't need) — Renovate matches the path README.md, but writing the regex substitution back through a symlink is a different story. made's docs/_docs/index.md is stuck at 3.9.0-RC4 across all three install snippets right now (manually fixed in a companion PR). Added docs/_docs/index.md to every managerFilePatterns list that already had README.md, so Renovate can target the real file directly.

Test plan

  • Once synced, a fresh Renovate run should propose bumping whatever's still stale (mcodec sbt line, made's docs/_docs/index.md, mrpc sbt line)
  • mrpc#55 — merge as-is for the two blocks it already fixes; a follow-up Renovate PR should catch the rest

🤖 Generated with Claude Code

halotukozak and others added 2 commits August 31, 2026 12:52
The "Scala language version" customManager matched scala-cli's
`//> using scala` and Mill's `def scalaVersion =`, but not sbt's
`scalaVersion := "..."` — every repo's README documents all three build
tools, so the sbt install snippet was silently exempt from every scala3
bump. Confirmed on halotukozak-com/mrpc#55 (open): it updates the
scala-cli and mill blocks to 3.9.0 but leaves the sbt block at
3.9.0-RC4 untouched.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
…ADME.md there)

made and alpaca's README.md is a symlink to docs/_docs/index.md (their docs
site's index page doubles as the README). That's very likely why
halotukozak-com/made#145 bumped project.scala's scala3 version but never
touched the README: Renovate almost certainly reads the real file when it
matches README.md at path level, but writing the substitution back through
a symlink is a different story, and made's docs/_docs/index.md is still
stuck at 3.9.0-RC4 across all three install snippets right now. Matching
the real path directly should let Renovate write straight to it instead of
through the symlink.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
halotukozak added a commit to halotukozak-com/mcodec that referenced this pull request Aug 31, 2026
…on mention

The sbt snippet's scalaVersion := "3.9.0-RC4" never got bumped alongside
the scala-cli/mill ones -- Renovate's regex customManager didn't match
sbt's `:=` syntax (fixed in halotukozak-com/.github#14). Also:
- `def mvDeps` -> `def mvnDeps` (Mill's actual field name)
- the top caveat's "3.9.0-RC4"/"made_3:0.1.2" mention (free prose, not
  something any regex manager touches) vs. project.scala's actual
  `made::0.4.1` dependency

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@halotukozak
halotukozak merged commit 63230bc into main Aug 31, 2026
@halotukozak
halotukozak deleted the fix-renovate-sbt-scalaversion-matcher branch August 31, 2026 11:33
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.

1 participant