While investigating go/types issue #14215, I noticed that (after fixing the obvious go/types bug), build.Import didn't find the desired package if srcDir was relative. Computing its absolute path (relative to cwd) fixed the problem.
Reminder to investigate behavior. Fix and/or document.
While investigating go/types issue #14215, I noticed that (after fixing the obvious go/types bug), build.Import didn't find the desired package if srcDir was relative. Computing its absolute path (relative to cwd) fixed the problem.
Reminder to investigate behavior. Fix and/or document.