replace github.com/foo/foo => ../foo
When getting the list of replaced modules, the .Replace.Path entry is given relative to the go.work file instead of relative to the current folder the command was invoked from. The command ran was the following:
~/tmp/go/workspace/fubar$ go list -json -m all
What did you expect to see?
Path being appropriately set to reflect the current directory