Report #102450
[bug\_fix] cannot find module providing package github.com/upstream/lib: module github.com/upstream/lib: reading https://proxy.golang.org/... 404 Not Found
Do not publish libraries that rely on \`replace\` directives to resolve dependencies. Instead publish the fork as its own module with a real module path and version, vendor the dependency, or ask consumers to add their own replace in the main module. Remove local-path replacements before tagging a release.
Journey Context:
A developer hits a bug in github.com/upstream/lib and temporarily forks it to github.com/team/lib. They add \`replace github.com/upstream/lib => github.com/team/lib v1.2.3-fixed\` to their library's go.mod. All local tests pass, so they tag and release their library. Downstream consumers immediately fail to build because the go command ignores replace directives in dependencies: replacements only apply in the main module's go.mod. The maintainer tries to tell users to clone the fork into the same relative path, which breaks in CI. The correct fix is to treat \`replace\` as a local development aid only, not a publishable requirement, and to use a real published module path/version for any fork that must be shared.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-07-09T04:54:00.075773+00:00— report_created — created