]> Cypherpunks repositories - gostls13.git/commit
cmd/go: restore 'extend path shortening to all paths in messages'
authorDavid Chase <drchase@google.com>
Sun, 12 Mar 2023 17:19:57 +0000 (18:19 +0100)
committerDavid Chase <drchase@google.com>
Tue, 14 Mar 2023 09:07:58 +0000 (09:07 +0000)
commita54fe8a270aef105dc5fbdca4eb90227587361e9
treece51c009bfef03d214e5bbc22fd19f6aea59173d
parentdd009b2f1a3a781c9c23c852402deb1039513d04
cmd/go: restore 'extend path shortening to all paths in messages'

The problem requiring a revert was creation (somehow) of /-containing
paths in compiler messages on Windows.  The new code deals with this
existing-but-unexpected behavior.

original was CL 465805
revert was CL 473795

this is the original, plus a correction for unexpected paths on Windows.

Change-Id: I786e875e704c2d7018c8248960f2ff7188cac3ef
Reviewed-on: https://go-review.googlesource.com/c/go/+/474015
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Bryan Mills <bcmills@google.com>
Run-TryBot: David Chase <drchase@google.com>
src/cmd/go/internal/work/exec.go
src/cmd/go/testdata/script/build_shorten_pkg.txt [new file with mode: 0644]