]> Cypherpunks repositories - gostls13.git/commit
cmd/go: clean paths before checking same directory
authorgerrard <gyc_ssdut@163.com>
Thu, 16 Sep 2021 07:10:58 +0000 (07:10 +0000)
committerBryan C. Mills <bcmills@google.com>
Thu, 16 Sep 2021 14:25:50 +0000 (14:25 +0000)
commit04f5116c987082a834a29e81c81ece8537d87219
tree0dc046bd42970941a68eb22c42c6945fc98be96b
parente7dbe3908e17ec77851161e6cb98c7161823aa0d
cmd/go: clean paths before checking same directory

Replace `filepath.Split`  with `filepath.Dir`. Clean paths before checking whether command line files are in same directory.

Fixes #47392

Change-Id: I259c3024e7670e78833622b02af4710bc4b68b31
GitHub-Last-Rev: c7c4905bb9c62737e95a4663813f076ee540046b
GitHub-Pull-Request: golang/go#47412
Reviewed-on: https://go-review.googlesource.com/c/go/+/337629
Trust: Bryan C. Mills <bcmills@google.com>
Trust: Cherry Mui <cherryyz@google.com>
Run-TryBot: Bryan C. Mills <bcmills@google.com>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Jay Conrod <jayconrod@google.com>
src/cmd/go/internal/load/pkg.go
src/cmd/go/testdata/script/run_dirs.txt