Skip to content

chore(deps): update module github.com/moby/sys/user to v0.5.0 - #4285

Merged
ocmbot[bot] merged 1 commit into
mainfrom
renovate/github.com-moby-sys-user-0.x
Nov 16, 2026
Merged

ocmbot[bot] merged 1 commit into
mainfrom
renovate/github.com-moby-sys-user-0.x

Conversation

@ocmbot

@ocmbot ocmbot Bot commented Nov 15, 2026 •

Copy link
Copy Markdown
Contributor

This PR contains the following updates:

Package Type Update Change OpenSSF
github.com/moby/sys/user indirect minor v0.4.1 → v0.5.0 OpenSSF Scorecard

Warning

Some dependencies could not be looked up. Check the Dependency Dashboard for more information.


Release Notes

moby/sys (github.com/moby/sys/user)

v0.5.0

Breaking changes

IdentityMapping.ToHost no longer special-cases the remapped root

ToHost used to skip the ID-map lookup when the ID passed in was equal to the
host remapped-root ID (as returned by RootPair). This was wrong: the arguments
are container IDs, and comparing them against a host value made no sense.

With a subuid/subgid base below 65536 (for example rootless:1000:65536, used
to align dind-rootless container UIDs), a non-root container UID equal to the
base (1000 in this example) was returned unmapped, so it appeared as root
inside the container.

ToHost now always translates both UID and GID through the mappings.
Container root (0) still maps to the host remapped-root base, same as
RootPair returns. An empty (nil) mapping is treated as identity.

What this means for callers:

  • Pass container IDs only. Code that passes the host remapped-root pair (for
    example, the result of RootPair) to ToHost and expects it back unchanged
    gets a different result or an error now. Pass 0, 0 instead, or use
    RootPair directly.
  • If ToHost returns an error, both returned IDs are now -1. Previously
    they could hold a partially translated value.

The only known caller that was relying on old behavior was moby/moby;
it was fixed by moby/moby#53859.

See #​242 and #​241.

Windows: MkdirAndChown no longer creates parent directories

On Windows, MkdirAndChown used to call os.MkdirAll, so it also created any
missing parent directories, unlike on Unix. It now uses os.Mkdir, as
documented. Use MkdirAllAndChown if you need parent directories created. See
#​236.

Changes

  • user: GetExecUser: use strings.Cut to split user:group (#​228)
  • user: GetExecUser: always clone default Sgids (#​229)
  • user: GetExecUser: rewrite with parseUserArg, parseGroupArg (#​231, #​232)
  • user: parseNumeric: require non-empty values (#​235)
  • user: MkdirAllAndChown, MkdirAndChown: DRY (#​244)
  • user: GoDoc fixes (#​233, #​237)
  • user: test fixes and cleanups (#​227, #​234)
  • user: require Go 1.24 (#​272)

New Contributors

Full Changelog: moby/sys@user/v0.4.1...user/v0.5.0


Configuration

📅 Schedule: (UTC)

  • Branch creation
    • Only on Sunday (* * * * 0)
  • Automerge
    • At any time (no schedule defined)

🚦 Automerge: Enabled.

♻ Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR has been generated by Mend Renovate CLI.

@ocmbot
ocmbot Bot requested a review from a team as a code owner November 15, 2026 00:21
@ocmbot
ocmbot Bot enabled auto-merge (squash) November 15, 2026 00:21
@coderabbitai

coderabbitai Bot commented Nov 15, 2026 •

Copy link
Copy Markdown
Contributor

Important

Review skipped

Bot user detected.

To trigger a single review, invoke the @coderabbitai review command.

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 3aa22662-936d-4591-8803-b1aaf9be172a

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • Trigger review
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@github-actions github-actions Bot added kind/chore chore, maintenance, etc. kind/dependency dependency update, etc. labels Nov 15, 2026
@netlify

netlify Bot commented Nov 15, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for ocm-website ready!

Name Link
🔨 Latest commit 1d60957
🔍 Latest deploy log https://app.netlify.com/projects/ocm-website/deploys/6afaecb5bd529419c13803bb
😎 Deploy Preview https://deploy-preview-4285--ocm-website.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

@github-actions github-actions Bot added the size/xs Extra small label Nov 15, 2026

@jakobmoellerdev jakobmoellerdev 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.

Reviewed: go.mod/go.sum only, no source changes needed. All checks green (unit, integration, lint, govulncheck, code generation). LGTM.

@ocmbot
ocmbot Bot force-pushed the renovate/github.com-moby-sys-user-0.x branch 19 times, most recently from 4e735db to ed7b4a8 Compare November 16, 2026 11:30
@ocmbot
ocmbot Bot force-pushed the renovate/github.com-moby-sys-user-0.x branch from ed7b4a8 to 1d60957 Compare November 16, 2026 11:44
@ocmbot
ocmbot Bot merged commit fd64354 into main Nov 16, 2026
31 checks passed
@ocmbot
ocmbot Bot deleted the renovate/github.com-moby-sys-user-0.x branch November 16, 2026 11:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

kind/chore chore, maintenance, etc. kind/dependency dependency update, etc. size/xs Extra small

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants