Skip to content

vendor.mod: github.com/microsoft/hcsshim v0.12.5#48174

Merged
thaJeztah merged 1 commit intomoby:masterfrom
AkihiroSuda:hcsshim-0.12.5
Aug 19, 2024
Merged

vendor.mod: github.com/microsoft/hcsshim v0.12.5#48174
thaJeztah merged 1 commit intomoby:masterfrom
AkihiroSuda:hcsshim-0.12.5

Conversation

@AkihiroSuda
Copy link
Member

@AkihiroSuda AkihiroSuda changed the title vendor.mod: github.com/microsoft/[email protected] vendor.mod: github.com/microsoft/hcsshim v0.12.5 Jul 17, 2024
@thaJeztah
Copy link
Member

Ah, yes, I recall I did not yet update RootlessKit as I wasn't sure if updating hcsshim to a version that didn't match containerd would be possibly problematic (containerd 1.7 is still on v0.11; https://github.com/containerd/containerd/blob/v1.7.19/go.mod#L10

cc @dmcgowan @kiashok

@AkihiroSuda
Copy link
Member Author

ping @thaJeztah @dmcgowan @kiashok 🙏

@thaJeztah
Copy link
Member

@AkihiroSuda I opened #48283 to get those in already, while we get confirmation from the others

Comment on lines -944 to +945
CreatedAt: p[i].CreateTimestamp,
CreatedAt: timestamppb.New(p[i].CreateTimestamp),
Copy link
Member

Choose a reason for hiding this comment

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

Oh; didn't make this change in the other PR; was this one related to the hcsshim update or to the grpc/proto updates?

Copy link
Member Author

Choose a reason for hiding this comment

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

Seems related to hcsshim

# github.com/docker/docker/libcontainerd/local
..\..\libcontainerd\local\local_windows.go:944:34: cannot use p[i].CreateTimestamp (variable of type time.Time) as *timestamppb.Timestamp value in struct literal

Comment on lines -296 to +297
err1 := RemoveAllRelative(path+string(os.PathSeparator)+name, root)
if err == nil {
err = err1
if err2 := RemoveAllRelative(path+string(os.PathSeparator)+name, root); err == nil {
err = err2
Copy link
Member

Choose a reason for hiding this comment

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

Was glancing over changes in the update, and not a fan of formatting this code like this; the previous formatting made it much less error-prone;

  • it makes it really easy to read the code to be checking for err2, but it's not.
  • it makes it really easy to think it's checking for non-nil error, but it's not.

And the overall use of a err as global, reused variable is a real risk of that variable being accidentally shadowed. I wonder if this code can be rewritten with early returns or otherwise.

Copy link
Member Author

Choose a reason for hiding this comment

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

Could you open an issue in the hcsshim repo?

Copy link
Member

Choose a reason for hiding this comment

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

Yup; was planning to open a ticket or PR (definitely not an issue with your PR, but I stumbled upon it)

Copy link
Member

@thaJeztah thaJeztah left a comment

Choose a reason for hiding this comment

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

LGTM

sorry forgot about this one; per the discussion in the containerd slack, it looks like this is probably fine to be ahead of containerd.

Let me double check with some other folks, but otherwise I think this should be OK to get in.

@thaJeztah thaJeztah added this to the 28.0.0 milestone Aug 15, 2024
@AkihiroSuda
Copy link
Member Author

Can we merge?

@thaJeztah thaJeztah merged commit 2c0100f into moby:master Aug 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants