Why not just the replace directive in go.mod?
The replace directive uses the current code when you declare it as a local path, not the version specified in the "require" section!
Why do you want to pin to a commit when everything is in flux - develop locally?
The replace directive uses the current code when you declare it as a local path, not the version specified in the "require" section!