Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sequoia-nixbld-user-migration: nail down PATH #12258

Merged
merged 1 commit into from
Jan 16, 2025

Conversation

abathur
Copy link
Member

@abathur abathur commented Jan 15, 2025

Motivation

Fixes user-reported trouble caused by toybox grep on PATH in the script for migrating the UIDs of nixbld users for macOS Sequoia and avoids same basic issue with other utils.

Context

For most-relevant context see comments between these two links (inclusive):

If needed, the whole thread those comments are in provides context on the purpose of the migration script.


Add 👍 to pull requests you find important.

The Nix maintainer team uses a GitHub project board to schedule and track reviews.

Fixes a user report of trouble with toybox grep and avoids
potential of same basic issue with other utils.
@abathur abathur requested a review from edolstra as a code owner January 15, 2025 15:26
@@ -2,6 +2,9 @@

set -eo pipefail

# stock path to avoid unexpected command versions
PATH="$(/usr/bin/getconf PATH)"
Copy link
Member Author

Choose a reason for hiding this comment

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

This should yield a standard system PATH. For context, here's what it outputs on mine:

$ getconf PATH
/usr/bin:/bin:/usr/sbin:/sbin

@edolstra edolstra merged commit f36cbee into NixOS:master Jan 16, 2025
13 checks passed
@edolstra edolstra added backport 2.24-maintenance Automatically creates a PR against the branch backport 2.25-maintenance Automatically creates a PR against the branch labels Jan 16, 2025
mergify bot added a commit that referenced this pull request Jan 16, 2025
…2258

sequoia-nixbld-user-migration: nail down PATH (backport #12258)
@roberth roberth added automatic backport This PR is a backport produced by automation (does not trigger backporting) and removed automatic backport This PR is a backport produced by automation (does not trigger backporting) labels Jan 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport 2.24-maintenance Automatically creates a PR against the branch backport 2.25-maintenance Automatically creates a PR against the branch
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants