dominikh / go-mode.el

Emacs mode for the Go programming language
BSD 3-Clause "New" or "Revised" License
1.38k stars 211 forks source link

gofmt: Invalid rcs patch or internal error in go--apply-rcs-patch #407

Closed b40yd closed 2 years ago

b40yd commented 2 years ago

call gofmt command report "Invalid rcs patch or internal error in go--apply-rcs-patch" error messge.

b40yd commented 2 years ago

It's my diff command issue.

elimisteve commented 6 months ago

@b40yd Hi there! Can you be more specific please? How did you change your diff command so that the Invalid rcs patch error would go away?

I'll reply here if I figure it out.

elimisteve commented 6 months ago

Got it! I'm using AlpineLinux, and the diff command comes from BusyBox instead of wherever it normally comes from on most Linux systems.

The solution on Alpine:

doas apk add diffutils

Thank you random StackOverflow question for inspiring this solution.