-
Notifications
You must be signed in to change notification settings - Fork 17.8k
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
x/tools/gopls/internal/span: TestURIFromPath fail in windows #63366
Comments
This test is build tagged !windows, so failure is expected. Our CI regularly runs tests on windows. Are you overriding GOOS? |
I am running go test ./... on gopls |
see https://github.com/golang/tools/blob/master/gopls/internal/span/uri_windows_test.go#L5-L20 ,The build label is windows. |
Similar issue like #63363. Need to avoid the hard-coded drive name (C:) |
@qiulaidongfeng my apologies, I blame gopls's lack of build tag support :) |
The problem (as @hyangah points out) is that |
Change https://go.dev/cl/556496 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?
git clone https://github.com/golang/tools
cd tools
cd gopls
go test ./...
What did you expect to see?
Test Passed.
What did you see instead?
The text was updated successfully, but these errors were encountered: