Repository navigation
Conversation
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 29 minutes. View limit details
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. |
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: d1c58a25c3
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| useradd --system --no-create-home --home-dir /var/empty \ | ||
| --shell /usr/sbin/nologin --gid nixbld "$user" |
There was a problem hiding this comment.
Add supplementary membership for the Nix build users
When this step creates the missing nixbld group in the org-run container, --gid nixbld sets only each user's primary group (useradd --help describes it as “the primary group”). It leaves the group's explicit membership list empty, so commands requiring a local Nix build still fail with the group 'nixbld' has no members in both single and together legs. This behavior is also documented in doc/platform/toolchains/nix.md:26. Add supplementary membership as well, including for existing users; the official Nix setup uses both -g nixbld and -G nixbld.
Useful? React with 👍 / 👎.
Summary
org-runlegs for Nix single-user mode by clearing the image-providedbuild-users-group = nixbldsetting.nix-commandandflakesin the workflow environment so dispatched Nix commands do not depend on caller-side feature flags.Closes #12894
Evidence
NIX_CONFIG=$"build-users-group =\\nextra-experimental-features = nix-command flakes" nix config showreports an emptybuild-users-groupand enabled Nix features on this host.git diff --check: pass.nix develop --extra-experimental-features "nix-command flakes" ./pkgs/id --command trueon the org-run surface.Merge Danger
.github/workflows/org-run.ymland intentionally affects both single and together legs.Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.