Repository: go
Issue: cmd/go: `list -m -u all` does not output deprecation or retraction notices if dependency is replaced
Labels: NeedsInvestigation,GoCommand,modules

<!--
Please answer these questions before submitting your issue. Thanks!
-->

### What version of Go are you using (`go version`)?

<pre>
$ go version
go version go1.20.4 darwin/arm64
</pre>

### Does this issue reproduce with the latest release?



### What operating system and processor architecture are you using (`go env`)?

<details><summary><code>go env</code> Output</summary><br><pre>
$ go env
GO111MODULE="on"
GOARCH="arm64"
GOHOSTARCH="arm64"
GOHOSTOS="darwin"
GOVERSION="go1.20.4"
</pre></details>

### What did you do?

<!--
If possible, provide a recipe for reproducing the error.
A complete runnable program is good.
A link on go.dev/play is best.
-->

Using the following `go.mod` file run `go list -json -m -u all`

```vgo
module testt

go 1.20

require (
	github.com/arungudelli/Retract-Go-Module-Versions v0.2.0
)

replace github.com/arungudelli/Retract-Go-Module-Versions => github.com/golang/protobuf v1.5.0
```

### What did you expect to see?
A JSON with the Retracted field.
```json
...
{
        "Path": "github.com/arungudelli/Retract-Go-Module-Versions",
        "Version": "v0.2.0",
        "Time": "2021-02-13T09:07:04Z",
        "Replace": {
                "Path": "github.com/golang/protobuf",
                "Version": "v1.5.0",
                "Time": "2021-03-18T00:15:31Z",
                "Update": {
                        "Path": "github.com/golang/protobuf",
                        "Version": "v1.5.3",
                        "Time": "2021-09-16T00:37:10Z"
                },
                "Dir": ".../go/pkg/mod/github.com/golang/protobuf@v1.5.0",
                "GoMod": ".../go/pkg/mod/cache/download/github.com/golang/protobuf/@v/v1.5.0.mod",
                "GoVersion": "1.9",
                "Deprecated": "Use the \"google.golang.org/protobuf\" module instead."
        },
        "Update": {
                "Path": "github.com/arungudelli/Retract-Go-Module-Versions",
                "Version": "v0.3.1",
                "Time": "2021-02-13T09:39:05Z"
        },
        "Dir": ".../go/pkg/mod/github.com/arungudelli/!retract-!go-!module-!versions@v0.2.0",
        "GoMod": ".../go/pkg/mod/cache/download/github.com/arungudelli/!retract-!go-!module-!versions/@v/v0.2.0.mod",
        "GoVersion": "1.16",
        "Retracted": [
                "Mistake happened in the version DO NOT USE"
        ]
}
```


### What did you see instead?
A JSON without the Retracted field.
```json
...
{
        "Path": "github.com/arungudelli/Retract-Go-Module-Versions",
        "Version": "v0.2.0",
        "Replace": {
                "Path": "github.com/golang/protobuf",
                "Version": "v1.5.0",
                "Time": "2021-03-18T00:15:31Z",
                "Update": {
                        "Path": "github.com/golang/protobuf",
                        "Version": "v1.5.3",
                        "Time": "2021-09-16T00:37:10Z"
                },
                "Dir": ".../go/pkg/mod/github.com/golang/protobuf@v1.5.0",
                "GoMod": ".../go/pkg/mod/cache/download/github.com/golang/protobuf/@v/v1.5.0.mod",
                "GoVersion": "1.9",
                "Deprecated": "Use the \"google.golang.org/protobuf\" module instead."
        },
        "Update": {
                "Path": "github.com/arungudelli/Retract-Go-Module-Versions",
                "Version": "v0.3.1",
                "Time": "2021-02-13T09:39:05Z"
        },
        "Dir": ".../go/pkg/mod/github.com/golang/protobuf@v1.5.0",
        "GoMod": ".../go/pkg/mod/cache/download/github.com/golang/protobuf/@v/v1.5.0.mod",
        "GoVersion": "1.9"
}
```

### Why is it important?
Dependent packages will get the required dependency, not the replacement. As a developer, I want to be notified if the declared dependency is retracted or deprecated.