Skip to content

[1.5] deps: bump to go-criu v8.3.0, drop google protobuf#5326

Merged
AkihiroSuda merged 2 commits into
opencontainers:release-1.5from
kolyshkin:1.5-5312
Jun 18, 2026
Merged

[1.5] deps: bump to go-criu v8.3.0, drop google protobuf#5326
AkihiroSuda merged 2 commits into
opencontainers:release-1.5from
kolyshkin:1.5-5312

Conversation

@kolyshkin

Copy link
Copy Markdown
Contributor

Backport of #5312 and #5313 to release-1.5.


go-criu v8.3.0 partially switches to protobuf-go-lite 1, which helps
to remove google.golang.org/protobuf dependency from here,
reducing the runc binary size from ~16M to ~14M.

The only missing piece is proto.String, proto.Bool, proto.Int32 etc.
helpers that return a pointer to a given variable. Those are replaced
by a generic mkPtr, which in turn is to be replaced by the new builtin
once Go < 1.26 is no longer supported.

Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
(cherry picked from commit 2694051)
Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
@kolyshkin kolyshkin added this to the 1.5.0 milestone Jun 18, 2026
@thaJeztah thaJeztah changed the title [1.5] 5312 [1.5] deps: bump to go-criu v8.3.0, drop google protobuf Jun 18, 2026
@kolyshkin kolyshkin added the backport/1.5-pr A backport PR to release-1.5 label Jun 18, 2026
@thaJeztah

Copy link
Copy Markdown
Member

Missing some other bump, or is it due to Go version?

Error: vendor/golang.org/x/sys/unix/syscall_linux.go:2170:29: undefined: minIovec
Error: vendor/golang.org/x/sys/unix/syscall_linux.go:2171:11: undefined: appendBytes
Error: vendor/golang.org/x/sys/unix/syscall_linux.go:2174:2: undefined: readvRaceDetect
Error: vendor/golang.org/x/sys/unix/syscall_linux.go:2184:29: undefined: minIovec
Error: vendor/golang.org/x/sys/unix/syscall_linux.go:2185:11: undefined: appendBytes
Error: vendor/golang.org/x/sys/unix/syscall_linux.go:2191:2: undefined: writevRaceDetect

go-criu v8.3.0 switches to protobuf-go-lite, which helps to remove
google.golang.org/protobuf dependency from here, reducing the runc
binary size from ~16M to ~14M.

The only missing piece is proto.String, proto.Bool, proto.Int32 etc.
helpers that return a pointer to a given variable. Those are replaced
by a generic mkPtr, which in turn is to be replaced by the new builtin
once Go < 1.26 is no longer supported.

Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
(cherry picked from commit f66ace4)
Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
@kolyshkin

Copy link
Copy Markdown
Contributor Author

Missing some other bump, or is it due to Go version?

Error: vendor/golang.org/x/sys/unix/syscall_linux.go:2170:29: undefined: minIovec
Error: vendor/golang.org/x/sys/unix/syscall_linux.go:2171:11: undefined: appendBytes
Error: vendor/golang.org/x/sys/unix/syscall_linux.go:2174:2: undefined: readvRaceDetect
Error: vendor/golang.org/x/sys/unix/syscall_linux.go:2184:29: undefined: minIovec
Error: vendor/golang.org/x/sys/unix/syscall_linux.go:2185:11: undefined: appendBytes
Error: vendor/golang.org/x/sys/unix/syscall_linux.go:2191:2: undefined: writevRaceDetect

This PR (unlike the one in main branch) bumps x/sys/unix and I forgot to git add (a single file). Should be fixed now.

@thaJeztah thaJeztah left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM (assuming CI is happy)

@AkihiroSuda AkihiroSuda merged commit 778bd25 into opencontainers:release-1.5 Jun 18, 2026
55 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport/1.5-pr A backport PR to release-1.5

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants