Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
19 commits
Select commit Hold shift + click to select a range
8ced6ad
feat: enable install command on non-Unix platforms
mattsu2020 Oct 25, 2025
d131ef0
style(install): Improve formatting of mode parsing in behavior function
mattsu2020 Oct 25, 2025
67f30a4
refactor(install): Improve cross-platform compatibility for file oper…
mattsu2020 Oct 25, 2025
17cb0ca
refactor(install): optimize path creation from trimmed bytes
mattsu2020 Oct 25, 2025
41ed0bf
test: gate install tests on Unix for platform-specific features
mattsu2020 Oct 25, 2025
2ddcee5
test: enhance cross-platform compatibility in install tests
mattsu2020 Oct 25, 2025
34c1d6c
test: update install tests for cross-platform compatibility
mattsu2020 Oct 25, 2025
b32e1a2
refactor: simplify stdout assertion in test_install_dir_req_verbose
mattsu2020 Oct 25, 2025
b993388
refactor: reorganize imports and format code in install module
mattsu2020 Oct 25, 2025
980ed94
refactor(install): remove redundant unix-specific OsStrExt import
mattsu2020 Oct 25, 2025
6a441f3
test(test_install): refactor format strings for MAIN_SEPARATOR
mattsu2020 Oct 25, 2025
54bc4a9
refactor(install): add platform-specific guards for Unix features
mattsu2020 Oct 25, 2025
cb61657
feat(install): add conditional compilation for non-Windows platforms
mattsu2020 Oct 25, 2025
2e397fa
refactor(tests): reorganize imports and add Windows cfg guards
mattsu2020 Oct 25, 2025
c3fce03
test: add std::fs import to install tests for filesystem operations
mattsu2020 Oct 25, 2025
7029e43
refactor(tests): add Unix cfg to std::fs import in install tests
mattsu2020 Oct 25, 2025
4cf3c69
feat(install): enable broken pipe error handling on Unix
mattsu2020 Oct 25, 2025
f115a38
feat: enable signals feature in uucore for install command
mattsu2020 Oct 25, 2025
1601026
test(install): enhance broken pipe test to assert no stderr output
mattsu2020 Oct 25, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@ feat_common_core = [
"fold",
"hashsum",
"head",
"install",
"join",
"link",
"ln",
Expand Down Expand Up @@ -210,7 +211,6 @@ feat_require_unix_core = [
"chroot",
"groups",
"id",
"install",
"kill",
"logname",
"mkfifo",
Expand Down
13 changes: 9 additions & 4 deletions src/uu/install/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -27,16 +27,21 @@ uucore = { workspace = true, default-features = true, features = [
"backup-control",
"buf-copy",
"fs",
"mode",
"perms",
"entries",
"process",
] }
fluent = { workspace = true }

[features]
selinux = ["dep:selinux", "uucore/selinux"]

[target.'cfg(unix)'.dependencies]
uucore = { workspace = true, default-features = true, features = [
"mode",
"perms",
"entries",
"process",
"signals",
] }

[[bin]]
name = "install"
path = "src/main.rs"
1 change: 1 addition & 0 deletions src/uu/install/locales/en-US.ftl
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ install-error-strip-abnormal = strip process terminated abnormally - exit code:
install-error-metadata-failed = metadata error
install-error-invalid-user = invalid user: { $user }
install-error-invalid-group = invalid group: { $group }
install-error-option-unsupported = the option { $option } is not supported on this platform
install-error-omitting-directory = omitting directory { $path }
install-error-not-a-directory = failed to access { $path }: Not a directory
install-error-override-directory-failed = cannot overwrite directory { $dir } with non-directory { $file }
Expand Down
1 change: 1 addition & 0 deletions src/uu/install/locales/fr-FR.ftl
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ install-error-strip-abnormal = le processus strip s'est terminé anormalement -
install-error-metadata-failed = erreur de métadonnées
install-error-invalid-user = utilisateur invalide : { $user }
install-error-invalid-group = groupe invalide : { $group }
install-error-option-unsupported = l'option { $option } n'est pas prise en charge sur cette plateforme
install-error-omitting-directory = omission du répertoire { $path }
install-error-not-a-directory = échec de l'accès à { $path } : N'est pas un répertoire
install-error-override-directory-failed = impossible d'écraser le répertoire { $dir } avec un non-répertoire { $file }
Expand Down
Loading
Loading