Skip to content

fix(operations.files): support numeric ownership idempotently - #2039

Open
wowi42 wants to merge 3 commits into
3.xfrom
fix/2032-numeric-file-ownership
Open

wowi42 wants to merge 3 commits into
3.xfrom
fix/2032-numeric-file-ownership

Conversation

@wowi42

@wowi42 wowi42 commented Oct 29, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Collect numeric UIDs and GIDs in file facts, including the ls fallback.
  • Compare integer ownership arguments by ID in files.download, files.put, files.link, files.file, and files.directory.
  • Preserve name-based comparisons, support UID/GID 0, and add regression fixtures.

Fixes #2032.

Validation

  • mise exec -- scripts/dev-test.sh: 2153 passed.
  • mise exec -- scripts/dev-lint.sh: passed.
  • Ran files.directory twice locally with numeric ownership; the second run reported no changes.

@wowi42 wowi42 added bug Label for all kind of bugs. operations Issues with operations. facts Issues with facts. labels Oct 29, 2026
@wowi42 wowi42 changed the title fix(files): support numeric ownership idempotently fix(operations.files): support numeric ownership idempotently Nov 1, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Label for all kind of bugs. facts Issues with facts. operations Issues with operations.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

files.directory is not idempotent when user / group specified with uid / gid

1 participant