-
Notifications
You must be signed in to change notification settings - Fork 1k
ctx.DetectProjectGOPATH: both C:\Work\src\github.com\F21\some_project are in the same GOPATH C:\Work\src\github.com\F21\some_project with Git Bash #772
Comments
@ibrasho i think we may have broken windows support :( |
Git repro demonstrating the issue here: https://github.com/F21/dep-gopath-err |
This error makes no sense. 😕 What's the value of GOPATH in Git Bash and the command prompt ( |
@ibrasho In both Git Bash and CMD, the GOPATH are set to |
Copying from Slack:
|
This error message means the following values were set and detected:
This line in @F21 I would appreciate it if you have time to debug this further. |
Just tried this on my dev machine with git bash:
|
Could you try running this gist and report what it outputs? |
Running it in git bash:
Running it in cmder/cmd
|
Could you update |
Updated dep to ec50ada here's what I get:
|
I assume this is |
Yes, it's only failing in git bash. Cmder/cmd works fine. |
We are reaching somewhere at least. 😁 Do you have any idea why |
I quick guess is probably that backward slashes do not work in git bash. For example, if I have |
Does #780 fix this? |
Built the latest master, but still seeing the same issue with git bash. |
#780 only effects It works fine on |
For me it doesn't work in simple cmd. |
If it helps, this is also happening to me on Windows. I can reproduce in a debugger by placing a lowercase drive letter in the working directory. For example, run dep init in a
condition fails because of case difference. Drive letters should be also treated insensitive on Windows, as some tooling can mangle paths from different sources (for example, having naive scripts using the cygwin mounts |
#940 should help in solving this one. |
I ended up just doing this // If pGOPATH equals rGOPATH, then both are within the same GOPATH.
if pGOPATH == rGOPATH {
if runtime.GOOS == "windows" {
return pGOPATH, nil
}
return "", errors.Errorf("both %s and %s are in the same GOPATH %s", p.AbsRoot, p.ResolvedAbsRoot, pGOPATH)
} it's kind of awful ... |
What version of Go (
go version
) anddep
(git describe --tags
) are you using?Go 1.9-Beta1 and dep c79b048
Git is 2.13.1.windows.1
What
dep
command did you run?I have a project with this structure
What did you expect to see?
There should be no error and init should work correctly.
What did you see instead?
ctx.DetectProjectGOPATH: both C:\Work\src\github.com\F21\some_project and C:\Work\src\github.com\F21\some_project are in the same GOPATH C:/Work/
The text was updated successfully, but these errors were encountered: