Skip to content

Compare a lone assembly whatever its name, and report unpaired ones - #72

Merged
Mpdreamz merged 1 commit into
mainfrom
pairing
Nov 14, 2026
Merged

Mpdreamz merged 1 commit into
mainfrom
pairing

Conversation

@Mpdreamz

Copy link
Copy Markdown
Contributor

assembly|old/Lib - Copy.dll against assembly|new/Lib.dll now compares the two. An assembly only one side has is printed, and it counts toward the suggested version when --target names it.

Prompt summary: The tool is being dusted off. A diff must not fail on two differently named builds of one library, and it must not hide an assembly a release added or dropped.

Why

Assemblies were paired only by file name. Two single dlls with different names gave "Unable to create diff!" and exit code 1 (#38). An assembly only one side had was dropped without a word, so a release that removed a whole assembly could suggest None.

What

A single assembly on each side

When each side holds exactly one assembly, the two are compared whatever their file names. With more than one on a side, pairing stays by file name.

Assemblies only one side has

Each one prints a line, [diff] Only in the old version: Extra.dll or [diff] Only in the new version: Extra.dll. When --target names it, a removed assembly makes the suggestion Major and an added one at least Minor. Without targets it only prints: a directory of build output gains and loses dependency dlls, and those are not the library's API.

Verify

mise run test
# PairingTests: the renamed copy, and an extra assembly on either side with and without --target

🤖 Generated with Claude Code

Assemblies were paired by file name only, so a dll and a renamed copy of it
could not be compared, and an assembly only one side had was dropped
without a word. A single assembly on each side is now compared regardless
of its name; an unpaired assembly is printed, and counts as removed or
added API when --target names it.

Fixes #38.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@Mpdreamz Mpdreamz added the bug A defect fixed (patch) label Nov 14, 2026
@Mpdreamz
Mpdreamz merged commit 41a3595 into main Nov 14, 2026
6 of 7 checks passed
@Mpdreamz
Mpdreamz deleted the pairing branch November 14, 2026 07:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug A defect fixed (patch)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant