I've got a program I maintain that uses a 3rd party module. That module has a bug in it, and I've raised a pull request to fix it.
But... I need to release a new version of my program as soon as possible.
My understanding was that I can use a replace directive in the go.mod file to replace the implementation. So I forked the repo, made my single commit change and put a one-liner in the go.mod file:
Locally, building the project with `go build` worked perfectly well, so I tagged a release, and called it a day.
However, users started reporting that they can't install the package with `go install` because it's broken with an error message of:
It was a surprise, because it works perfectly well for me. Reading through various issues (linked below), I see lots of discussion, but no clear guidance on what to do as an author.
I assume it's fairly common to need to patch a 3rd party dependency, so I must be missing something. What's the strategy to employ here?