In case of different main files it's impossible to differentiate where the error came from.
Design
Current implementation WITHOUT setting SourceRoot and ProjectPackages produces event like this:
Current implementation WITH configuration:
Changes in this PR WITHOUT any configuration:
Changes in this PR with SourceRoot configured:
Changes in this PR with SourceRoot and ProjectPackages configured:
Changeset
If the file is in project trim SourceRoot from the filepath, for outsider files trim GOROOT and GOPATH if they are set.
It's impossible to get SourceRoot programmatically at runtime. We can get info about module to add to ProjectPackages along with main but it will work only if called from main file.
Goal
In case of different main files it's impossible to differentiate where the error came from.
Design
Current implementation WITHOUT setting
SourceRoot
andProjectPackages
produces event like this:Current implementation WITH configuration:
Changes in this PR WITHOUT any configuration:
Changes in this PR with
SourceRoot
configured:Changes in this PR with
SourceRoot
andProjectPackages
configured:Changeset
If the file is in project trim
SourceRoot
from the filepath, for outsider files trim GOROOT and GOPATH if they are set. It's impossible to get SourceRoot programmatically at runtime. We can get info about module to add to ProjectPackages along with main but it will work only if called from main file.Testing
-