betterer icon indicating copy to clipboard operation
betterer copied to clipboard

automerge not working - No such file or directory

Open developerdizzle opened this issue 6 months ago • 3 comments

Describe the bug

My apologies if I'm missing something obvious here, but after setting up two branches with .betterer.results changes, and trying to merge one into the other (after betterer init --automerge applied), I'm seeing this error:

git merge NOTICK-BettererAutoMerge-ResultsTest
/Users/***/***/node_modules/.pnpm/@[email protected]_@[email protected]_@[email protected][email protected]/node_modules/@betterer/cli/bin/betterer-merge .merge_file_WtMv9J .merge_file_2hQC77: /Users/***/***/node_modules/.pnpm/@[email protected]_@[email protected]_@[email protected][email protected]/node_modules/@betterer/cli/bin/betterer-merge: No such file or directory
Auto-merging .betterer.results
CONFLICT (content): Merge conflict in .betterer.results
Automatic merge failed; fix conflicts and then commit the result.

.gitattributes entry:

# Betterer merge
.betterer.results merge=betterer

Versions (please complete the following information):

  • OS: OSX Sequoia 15.4.1
  • Betterer Version 5.4.0
  • Node Version 20.11.1

developerdizzle avatar Jun 03 '25 17:06 developerdizzle

After some more investigation, it appears the betterer-merge binary is missing

Image

developerdizzle avatar Jun 04 '25 13:06 developerdizzle

Updating the .git/config entry to use betterer merge instead of betterer-merge seemed to work

developerdizzle avatar Jun 04 '25 13:06 developerdizzle

Oh yes that’s totally my bad, I’ll get that fixed!

phenomnomnominal avatar Jun 04 '25 22:06 phenomnomnominal

@phenomnomnominal I think I got a fix ^

LMK if that's something you'd be willing to merge

developerdizzle avatar Jun 27 '25 04:06 developerdizzle