Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
c86d0de
feat: enable install command on non-Unix platforms
mattsu2020 Oct 25, 2025
322d612
style(install): Improve formatting of mode parsing in behavior function
mattsu2020 Oct 25, 2025
2029418
refactor(install): Improve cross-platform compatibility for file oper…
mattsu2020 Oct 25, 2025
6567dd0
refactor(install): optimize path creation from trimmed bytes
mattsu2020 Oct 25, 2025
c6bcc67
test: gate install tests on Unix for platform-specific features
mattsu2020 Oct 25, 2025
7035f9b
test: enhance cross-platform compatibility in install tests
mattsu2020 Oct 25, 2025
ff98917
test: update install tests for cross-platform compatibility
mattsu2020 Oct 25, 2025
6dcc6e6
refactor: simplify stdout assertion in test_install_dir_req_verbose
mattsu2020 Oct 25, 2025
ad0127c
refactor: reorganize imports and format code in install module
mattsu2020 Oct 25, 2025
e4d2669
refactor(install): remove redundant unix-specific OsStrExt import
mattsu2020 Oct 25, 2025
38eff03
test(test_install): refactor format strings for MAIN_SEPARATOR
mattsu2020 Oct 25, 2025
4215132
refactor(install): add platform-specific guards for Unix features
mattsu2020 Oct 25, 2025
09dfd98
feat(install): add conditional compilation for non-Windows platforms
mattsu2020 Oct 25, 2025
dd329eb
refactor(tests): reorganize imports and add Windows cfg guards
mattsu2020 Oct 25, 2025
9a3156f
test: add std::fs import to install tests for filesystem operations
mattsu2020 Oct 25, 2025
8b4cf4b
refactor(tests): add Unix cfg to std::fs import in install tests
mattsu2020 Oct 25, 2025
d2c81d9
feat(install): enable broken pipe error handling on Unix
mattsu2020 Oct 25, 2025
5a55923
feat: enable signals feature in uucore for install command
mattsu2020 Oct 25, 2025
038d02f
test(install): enhance broken pipe test to assert no stderr output
mattsu2020 Oct 25, 2025
1fd3a85
refactor(install): extract platform-specific logic into module
mattsu2020 Nov 10, 2025
1d7defa
refactor(install): remove unused MAIN_SEPARATOR import
mattsu2020 Nov 10, 2025
c5adc68
feat(install): Add Windows-specific path handling and unsupported opt…
mattsu2020 Dec 31, 2025
d890827
Merge branch 'main' into install-windows-build
mattsu2020 Jan 5, 2026
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 @@ -101,6 +101,7 @@ feat_common_core = [
"fold",
"hashsum",
"head",
"install",
"join",
"link",
"ln",
Expand Down Expand Up @@ -214,7 +215,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 @@ -36,6 +36,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 @@ -36,6 +36,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