service: add min/max supported ver and target ver to GetVersion resp (#1718)

Fixes #1713
This commit is contained in:
Alessandro Arzilli
2019-10-23 01:39:22 +02:00
committed by Derek Parker
parent 6c8c4508db
commit d064d1fe05
3 changed files with 21 additions and 9 deletions

View File

@ -1280,6 +1280,12 @@ func (d *Debugger) GetVersion(out *api.GetVersionOut) error {
out.Backend = d.config.Backend
}
}
out.TargetGoVersion = d.target.BinInfo().Producer()
out.MinSupportedVersionOfGo = fmt.Sprintf("%d.%d.0", goversion.MinSupportedVersionOfGoMajor, goversion.MinSupportedVersionOfGoMinor)
out.MaxSupportedVersionOfGo = fmt.Sprintf("%d.%d.0", goversion.MaxSupportedVersionOfGoMajor, goversion.MaxSupportedVersionOfGoMinor)
return nil
}