aboutsummaryrefslogtreecommitdiffhomepage
path: root/crates/shirabe/src/downloader
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2026-06-10 02:41:34 +0900
committernsfisis <nsfisis@gmail.com>2026-06-10 02:46:18 +0900
commit2d474e91e49c7343d28198eff2b5bbbed9afbcee (patch)
tree8c1ab321dfa5ddc1ca9d2871eb06a6fde6b2970b /crates/shirabe/src/downloader
parente583112899cbea7494ffdd73d7de380dd5f808c4 (diff)
downloadphp-shirabe-2d474e91e49c7343d28198eff2b5bbbed9afbcee.tar.gz
php-shirabe-2d474e91e49c7343d28198eff2b5bbbed9afbcee.tar.zst
php-shirabe-2d474e91e49c7343d28198eff2b5bbbed9afbcee.zip
feat(phase-c): resolve cross-module phase-b TODOs
Diffstat (limited to 'crates/shirabe/src/downloader')
-rw-r--r--crates/shirabe/src/downloader/file_downloader.rs7
-rw-r--r--crates/shirabe/src/downloader/git_downloader.rs3
2 files changed, 1 insertions, 9 deletions
diff --git a/crates/shirabe/src/downloader/file_downloader.rs b/crates/shirabe/src/downloader/file_downloader.rs
index 54b0882..e5112cc 100644
--- a/crates/shirabe/src/downloader/file_downloader.rs
+++ b/crates/shirabe/src/downloader/file_downloader.rs
@@ -551,12 +551,7 @@ impl DownloaderInterface for FileDownloader {
for bin in package.get_binaries() {
let bin_path = format!("{}/{}", path, bin);
if file_exists(&bin_path) && !is_executable(&bin_path) {
- // TODO(phase-b): Silencer::call_named for native PHP function
- let _ = Silencer::call(|| {
- let _ = bin_path;
- let _ = umask();
- Ok(())
- });
+ let _ = Silencer::call(|| Ok(shirabe_php_shim::chmod(&bin_path, 0o777 & !umask())));
}
}
diff --git a/crates/shirabe/src/downloader/git_downloader.rs b/crates/shirabe/src/downloader/git_downloader.rs
index 7dace1b..47dd959 100644
--- a/crates/shirabe/src/downloader/git_downloader.rs
+++ b/crates/shirabe/src/downloader/git_downloader.rs
@@ -1240,7 +1240,6 @@ impl VcsDownloader for GitDownloader {
io_interface::NORMAL,
);
let slice_end = 10_usize.min(changes.len());
- // TODO(phase-b): PHP passes the list directly to writeError; joined here so write_error3 takes &str
self.inner
.io
.write_error3(&changes[..slice_end].join("\n"), true, io_interface::NORMAL);
@@ -1291,7 +1290,6 @@ impl VcsDownloader for GitDownloader {
.into());
}
Some("v") => {
- // TODO(phase-b): PHP passes list directly; joined here for &str arg
self.inner
.io
.write_error3(&changes.join("\n"), true, io_interface::NORMAL);
@@ -1307,7 +1305,6 @@ impl VcsDownloader for GitDownloader {
if do_help {
// help:
- // TODO(phase-b): PHP passes list directly; joined here for &str arg
self.inner.io.write_error3(
&[
format!(