mirror of
https://github.com/go-delve/delve.git
synced 2025-10-29 09:46:56 +08:00
service: add min/max supported ver and target ver to GetVersion resp (#1718)
Fixes #1713
This commit is contained in:
committed by
Derek Parker
parent
6c8c4508db
commit
d064d1fe05
@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user