-
Notifications
You must be signed in to change notification settings - Fork 17.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cmd/go: clean paths before checking whether command line files are in same directory #47392
Comments
|
Hi @seankhliao thanks for reply. Yes, I agree test/e2e refers to a package. What I expected here is to normalized dir name for better comparison which has no relationship with package's import path. From GoFilesPackage, |
The problem is |
I think this is a valid (but lower priority issue). The go command uses the It makes sense to require that those files are in the same directory, but it seems fine to pass the arguments through |
Hi @jayconrod, yes, that's what I really expected! I have send a pr to fix this. |
Change https://golang.org/cl/337629 mentions this issue: |
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
I typed
go test
manually to run test in terminal and got the error.What did you expect to see?
Treat
./test/e2e/
andtest/e2e/
as same dirWhat did you see instead?
It seems that the internal
load
package use thefilepath.Split
inGoFilesPackage
function to the ensure all named files must all be in one directory.But
filepath.Split
only does the split and does not normalized the result.I'm not sure whether we can replace it with
filepath.Dir
and get rid of the such error prompt?The text was updated successfully, but these errors were encountered: