Skip to content

fix: bake target names collision for services differing by '.' vs '_' - #14058

Merged
ndeloof merged 1 commit into
mainfrom
fix-bake-target-collision
Aug 18, 2026
Merged

fix: bake target names collision for services differing by '.' vs '_'#14058
ndeloof merged 1 commit into
mainfrom
fix-bake-target-collision

Conversation

@ndeloof

@ndeloof ndeloof commented Aug 17, 2026

Copy link
Copy Markdown
Contributor

What I did

Stacked on #14057.

The dedup loop in bakeTargetNames checked whether the service already had a name — never true on first pass — instead of whether the name was already taken, so services like a.b and a_b silently mapped to the same bake target and one overwrote the other in the bake file. Names are now allocated in sorted service order (deterministic) and a colliding name gets _ appended until unique. Covered by a new unit test.

Related issue

n/a

🤖 Generated with Claude Code

@ndeloof
ndeloof requested review from a team as code owners August 17, 2026 06:48
@ndeloof
ndeloof requested review from glours and removed request for a team August 17, 2026 06:48
Base automatically changed from gocognit-eval to main August 18, 2026 08:42
@glours
glours force-pushed the fix-bake-target-collision branch from 1038f8d to 08d11db Compare August 18, 2026 08:42
@ndeloof
ndeloof force-pushed the fix-bake-target-collision branch from 08d11db to 1f14c8a Compare August 18, 2026 09:13
The dedup loop in bakeTargetNames checked whether the service already
had a name — never true on first pass — instead of whether the name
was already taken, so services like 'a.b' and 'a_b' silently mapped to
the same bake target and one overwrote the other in the bake file.
Allocate names in sorted service order (deterministic) and append '_'
until unique.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
@ndeloof
ndeloof force-pushed the fix-bake-target-collision branch from 1f14c8a to b8e4a07 Compare August 18, 2026 09:23
@ndeloof
ndeloof merged commit bd7f14c into main Aug 18, 2026
49 checks passed
@ndeloof
ndeloof deleted the fix-bake-target-collision branch August 18, 2026 09:41
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.

3 participants