build(deps): bump github.com/checkpoint-restore/go-criu/v7
Bumps [github.com/checkpoint-restore/go-criu/v7](https://github.com/checkpoint-restore/go-criu) from 7.0.0 to 7.1.0. - [Release notes](https://github.com/checkpoint-restore/go-criu/releases) - [Commits](https://github.com/checkpoint-restore/go-criu/compare/v7.0.0...v7.1.0) --- updated-dependencies: - dependency-name: github.com/checkpoint-restore/go-criu/v7 dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com>
This commit is contained in:
16
vendor/github.com/checkpoint-restore/go-criu/v7/main.go
generated
vendored
16
vendor/github.com/checkpoint-restore/go-criu/v7/main.go
generated
vendored
@@ -218,7 +218,7 @@ func (c *Criu) StartPageServerChld(opts *rpc.CriuOpts) (int, int, error) {
|
||||
return 0, 0, err
|
||||
}
|
||||
|
||||
return int(resp.Ps.GetPid()), int(resp.Ps.GetPort()), nil
|
||||
return int(resp.GetPs().GetPid()), int(resp.GetPs().GetPort()), nil
|
||||
}
|
||||
|
||||
// GetCriuVersion executes the VERSION RPC call and returns the version
|
||||
@@ -230,22 +230,22 @@ func (c *Criu) GetCriuVersion() (int, error) {
|
||||
}
|
||||
|
||||
if resp.GetType() != rpc.CriuReqType_VERSION {
|
||||
return 0, fmt.Errorf("unexpected CRIU RPC response")
|
||||
return 0, errors.New("unexpected CRIU RPC response")
|
||||
}
|
||||
|
||||
version := int(*resp.GetVersion().MajorNumber) * 10000
|
||||
version += int(*resp.GetVersion().MinorNumber) * 100
|
||||
if resp.GetVersion().Sublevel != nil {
|
||||
version += int(*resp.GetVersion().Sublevel)
|
||||
version := resp.GetVersion().GetMajorNumber() * 10000
|
||||
version += resp.GetVersion().GetMinorNumber() * 100
|
||||
if resp.GetVersion().GetSublevel() != 0 {
|
||||
version += resp.GetVersion().GetSublevel()
|
||||
}
|
||||
|
||||
if resp.GetVersion().Gitid != nil {
|
||||
if resp.GetVersion().GetGitid() != "" {
|
||||
// taken from runc: if it is a git release -> increase minor by 1
|
||||
version -= (version % 100)
|
||||
version += 100
|
||||
}
|
||||
|
||||
return version, nil
|
||||
return int(version), nil
|
||||
}
|
||||
|
||||
// IsCriuAtLeast checks if the version is at least the same
|
||||
|
||||
Reference in New Issue
Block a user