]> Cypherpunks repositories - gostls13.git/commit
cmd/go: use --ffile-prefix-map instead of --debug-prefix-map
authorMichael Matloob <matloob@golang.org>
Tue, 21 Mar 2023 20:00:18 +0000 (16:00 -0400)
committerMichael Matloob <matloob@golang.org>
Wed, 22 Mar 2023 19:56:37 +0000 (19:56 +0000)
commit4d9beb2052f9ee22901afe7ad0776e375ff581e7
tree7acbf8faac77b7904d98d23c03c34778aaddd024
parent48d61a46e28076bf0e41f50459fe0875ec5f4010
cmd/go: use --ffile-prefix-map instead of --debug-prefix-map

Also add code to replace the vendor directory in the prefix-map in
vendored modules.  We weren't doing that before because in vendored
modules, the module's Dir field was set to empty, so nothing was being
replaced. Instead when Dir is not set, so we are in vendor mode,
replace the entire vendor directory's path.

Change-Id: I910499c74237699fd36d18049909a72e2b6705d9
Reviewed-on: https://go-review.googlesource.com/c/go/+/478455
Reviewed-by: Bryan Mills <bcmills@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Run-TryBot: Michael Matloob <matloob@golang.org>
Reviewed-by: Michael Matloob <matloob@golang.org>
src/cmd/go/internal/work/exec.go
src/cmd/go/testdata/script/cgo_trimpath_macro.txt [new file with mode: 0644]