REA go.mod replace notes (unofficial)

Last updated: · By the RepoRead editorial team · Unofficial guide
Quick answer

go.mod replace pins local or fork module redirects. In REA 6.7.x, treat selected replace pins as Evidence beside archive/package routes — complementing cousins without inventing APIs.

Mental model

  1. Authorize the go.mod (+ artifacts you hold).
  2. Quote selected replace old => new pins you actually see (never paste proxy tokens).
  3. Cousins → go-mod · go-modules · go-sum · go-work.
  4. Bind absolute paths honestly → rea-absolute-paths.
  5. Do not invent a inspect_go_mod_replace API REA never called.

Minimal path

# authorized go.mod (+ artifact you hold)
# quote selected replace old => new into case notes
# cousins → go-mod / go-modules / go-sum / go-work
# REA package/archive routes on /absolute/path/artifact --json
# do not invent: rea inspect_go_mod_replace .

Compare

ArtifactHonest posture
go.mod replaceold => new redirect identity facts
go.mod lanerea-go-mod
go modules lanerea-go-modules
Evidence binderrea-evidence-explained

Scope we will not cover

  • No inventing inspect_go_mod_replace / automatic rewrite against foreign modules.
  • No credential theft from GOPROXY / private module tokens.
  • No pirate redistribution of paid modules.
  • No crack framing via replace pins.

RepoRead is unofficial. Prefer config honesty + DISCLAIMER.md.

FAQ

How is this different from rea-go-mod?

rea-go-mod covers broader go.mod module/require identity. This page zooms on replace directives — it does not overwrite that page.

Is there inspect_go_mod_replace in 6.7.0?

Not assumed. Quote replace old => new paths you actually open. Do not invent inspect_go_mod_replace.

Does REA run go get / rewrite replace for you?

No. Local trees only. No credential theft from private module tokens.

replace vs require vs go.work use?

Label Evidence by the directive present. Quote replace / require / use you open.

npm version checked?

rea-agents 6.7.0 (re-checked 2026-10-24).

Sources