diff --git a/CHANGELOG.md b/CHANGELOG.md
index e47c359fabdf..4da61ec2c332 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -38,7 +38,7 @@ Ref: https://keepachangelog.com/en/1.0.0/
 ### Features
 
 * (types/coin.go) [\#6755](https://github.com/cosmos/cosmos-sdk/pull/6755) Add custom regex validation for `Coin` denom by overwriting `CoinDenomRegex` when using `/types/coin.go`.
-* (version) [\#7835](https://github.com/cosmos/cosmos-sdk/issues/7835) The version --long command now shows the list of build dependencies and their versioning information.
+* (version) [\#7835](https://github.com/cosmos/cosmos-sdk/issues/7835) [\#7940](https://github.com/cosmos/cosmos-sdk/issues/7940) The version --long command now shows the list of build dependencies and their versioning information.
 
 ### Bug Fixes
 
diff --git a/version/version.go b/version/version.go
index 9ce86e94c5da..de3629a8f2f4 100644
--- a/version/version.go
+++ b/version/version.go
@@ -90,6 +90,13 @@ type buildDep struct {
 	*debug.Module
 }
 
-func (d buildDep) String() string                    { return fmt.Sprintf("%s@%s", d.Path, d.Version) }
+func (d buildDep) String() string {
+	if d.Replace != nil {
+		return fmt.Sprintf("%s@%s => %s@%s", d.Path, d.Version, d.Replace.Path, d.Replace.Version)
+	}
+
+	return fmt.Sprintf("%s@%s", d.Path, d.Version)
+}
+
 func (d buildDep) MarshalJSON() ([]byte, error)      { return json.Marshal(d.String()) }
 func (d buildDep) MarshalYAML() (interface{}, error) { return d.String(), nil }