cmd/go: build, vet, fmt, test print path format ./example.go:1:1: #35144
Labels
FrozenDueToAge
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Milestone
create a file main.go
Then try the following
So far so good everything consistent except for the
vet:
thingy in the beginning of the vet output instead of./main.go:2:1: vet: expected declaration, found k
but I let that slight for now :) Most important for vscode and my terminal is path consistency namely every path has at least one/
in itNow do go test again but rename the file to main_test.go
Here we break the internet because vscode and terminals can't figure out that it's a path because
./
is stripped so you can't click on it anymore to open the src file in that location.(ref: https://groups.google.com/forum/#!topic/golang-dev/ZbTYwDSlGvQ)
EDIT:
I think we need to start with just
go vet
consistency in test vs non test files to begin with.output
go vet
on a.go
file vs_test.go
fileend goal should be this in all cases, to make vet consistent with itself and other tools :)
The text was updated successfully, but these errors were encountered: