Skip to content

install: build on Redox - #15276

Open
abendrothj wants to merge 1 commit into
uutils:mainfrom
abendrothj:install-redox-build
Open

abendrothj wants to merge 1 commit into
uutils:mainfrom
abendrothj:install-redox-build

Conversation

@abendrothj

Copy link
Copy Markdown
Contributor

install used uucore's safe_traversal under #[cfg(unix)], but uucore doesn't build it on Redox, so install didn't compile there. On Redox it now takes the path-based code the non-Unix branches already have, as rm and du do. Nothing changes on other platforms; checked with cargo clippy --target x86_64-unknown-redox -p uu_install.

There's no test because nothing in CI builds install for Redox: the Redox job is disabled, and feat_os_unix_redox doesn't include install. Adding install to that feature set would guard it once the job is back on.

#14772 touches the same code and will be rebased onto this.

Closes #15275

Copilot AI balanced review requested due to automatic review settings October 12, 2026 12:33

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

.map_err(|e| InstallError::CreateDirFailed(to_create.to_path_buf(), e))?;
#[cfg(any(not(unix), target_os = "redox"))]
fs::create_dir_all(to_create).map_err(|e| {
InstallError::CreateDirFailed(to_create_original.to_path_buf(), e)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

this changes the error message on windows too, intended? if so, please mention it in the commit message

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

If this change was intentional it should be made in a separate commit at a minimum.

@xtqqczze xtqqczze self-assigned this Oct 12, 2026
@xtqqczze

Copy link
Copy Markdown
Collaborator

1ac5cd1 compiles successfully locally:

cargo clippy -q --target x86_64-unknown-redox -p uu_install --all-targets --all-features

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

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

install: does not compile for Redox

4 participants