Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
cmd/vet: panic when run with -source starting at CL 38262 #19598
To reproduce, go to
This is why the vetall builder is currently red. Haven't investigated whether the CL is the problem or whether it uncovered an existing problem.
I traced this down a little bit.
In the packages that fails (
In srcimporter.Importer.ImportFrom, that goes into the build.IsLocalImport(path), gets resolved using p.ctxt.ImportDir, and the resulting package has
I'm not sure where in this chain of events something has gone wrong, but I don't think vet is doing anything wrong here. I suspect that srcimporter does not correctly handle relative imports, one way or another.