aboutsummaryrefslogtreecommitdiffhomepage
path: root/crates/shirabe/src/downloader/fossil_downloader.rs
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2026-05-19 21:46:01 +0900
committernsfisis <nsfisis@gmail.com>2026-05-19 21:46:08 +0900
commit5e31fa33c3b5cf726a57a063b8e7a070869250fe (patch)
tree98522466966fa7df483cad174ab5fc03db39bc09 /crates/shirabe/src/downloader/fossil_downloader.rs
parentc839244d8d09f3036ebfee8eef7eb6b147e593ab (diff)
downloadphp-shirabe-5e31fa33c3b5cf726a57a063b8e7a070869250fe.tar.gz
php-shirabe-5e31fa33c3b5cf726a57a063b8e7a070869250fe.tar.zst
php-shirabe-5e31fa33c3b5cf726a57a063b8e7a070869250fe.zip
fix(compile): fix more random compile errors
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Diffstat (limited to 'crates/shirabe/src/downloader/fossil_downloader.rs')
-rw-r--r--crates/shirabe/src/downloader/fossil_downloader.rs28
1 files changed, 19 insertions, 9 deletions
diff --git a/crates/shirabe/src/downloader/fossil_downloader.rs b/crates/shirabe/src/downloader/fossil_downloader.rs
index 5314e10..53b4315 100644
--- a/crates/shirabe/src/downloader/fossil_downloader.rs
+++ b/crates/shirabe/src/downloader/fossil_downloader.rs
@@ -29,9 +29,11 @@ impl FossilDownloader {
path: String,
url: String,
) -> Result<Box<dyn PromiseInterface>> {
- self.inner
- .config
- .prohibit_url_by_config(&url, &self.inner.io)?;
+ self.inner.config.borrow_mut().prohibit_url_by_config(
+ &url,
+ Some(&self.inner.io),
+ &indexmap::IndexMap::new(),
+ )?;
let repo_file = format!("{}.fossil", path);
let real_path = shirabe_php_shim::realpath(&path);
@@ -85,9 +87,11 @@ impl FossilDownloader {
path: String,
url: String,
) -> Result<Box<dyn PromiseInterface>> {
- self.inner
- .config
- .prohibit_url_by_config(&url, &self.inner.io)?;
+ self.inner.config.borrow_mut().prohibit_url_by_config(
+ &url,
+ Some(&self.inner.io),
+ &indexmap::IndexMap::new(),
+ )?;
self.inner.io.write_error(&format!(
" Updating to {}",
@@ -135,7 +139,7 @@ impl FossilDownloader {
}
let mut output = String::new();
- self.inner.process.execute(
+ self.inner.process.borrow_mut().execute_args(
&["fossil".to_string(), "changes".to_string()],
&mut output,
shirabe_php_shim::realpath(&path),
@@ -196,12 +200,18 @@ impl FossilDownloader {
cwd: Option<String>,
output: &mut String,
) -> Result<()> {
- if self.inner.process.execute(&command, output, cwd) != 0 {
+ if self
+ .inner
+ .process
+ .borrow_mut()
+ .execute(&command, output, cwd)
+ != 0
+ {
return Err(RuntimeException {
message: format!(
"Failed to execute {}\n\n{}",
command.join(" "),
- self.inner.process.get_error_output()
+ self.inner.process.borrow().get_error_output()
),
code: 0,
}