aboutsummaryrefslogtreecommitdiffhomepage
path: root/crates/mozart/src/commands/reinstall.rs
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2026-05-10 00:32:08 +0900
committernsfisis <nsfisis@gmail.com>2026-05-10 00:32:08 +0900
commit8cc1ba8a02c0318b65658f1634de378c780392b9 (patch)
treefdd5cb61e488018891a486b25991b87c84220bb8 /crates/mozart/src/commands/reinstall.rs
parent72b2e877c01e67ba7edd37e34ac2eadb7a1c62c4 (diff)
downloadphp-mozart-8cc1ba8a02c0318b65658f1634de378c780392b9.tar.gz
php-mozart-8cc1ba8a02c0318b65658f1634de378c780392b9.tar.zst
php-mozart-8cc1ba8a02c0318b65658f1634de378c780392b9.zip
refactor(workspace): consolidate crates into mozart-core
Merged mozart-archiver, mozart-autoload, mozart-registry, mozart-sat-resolver, and mozart-vcs into mozart-core to align the source layout with Composer's structure. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Diffstat (limited to 'crates/mozart/src/commands/reinstall.rs')
-rw-r--r--crates/mozart/src/commands/reinstall.rs10
1 files changed, 5 insertions, 5 deletions
diff --git a/crates/mozart/src/commands/reinstall.rs b/crates/mozart/src/commands/reinstall.rs
index dc99a91..52dfd52 100644
--- a/crates/mozart/src/commands/reinstall.rs
+++ b/crates/mozart/src/commands/reinstall.rs
@@ -1,6 +1,6 @@
use crate::composer::Composer;
use clap::Args;
-use mozart_autoload::AutoloadGeneratorExt;
+use mozart_core::autoload::AutoloadGeneratorExt;
use mozart_core::composer::{AutoloadDumpOptions, LocalPackage};
use mozart_core::console_format;
use mozart_core::validation::package_name_to_regexp;
@@ -138,8 +138,8 @@ pub async fn execute(
// `mozart-registry::installer_executor` exposes the same shape, we
// remove the install dir and re-download in place using each package's
// recorded `dist` info.
- let cache_config = mozart_registry::cache::build_cache_config(cli.no_cache);
- let files_cache = mozart_registry::cache::Cache::files(&cache_config);
+ let cache_config = mozart_core::repository::cache::build_cache_config(cli.no_cache);
+ let files_cache = mozart_core::repository::cache::Cache::files(&cache_config);
let installation_manager = composer.installation_manager();
for package in &packages_to_reinstall {
@@ -166,12 +166,12 @@ pub async fn execute(
std::fs::remove_dir_all(&install_path)?;
}
- let mut progress = mozart_registry::downloader::DownloadProgress::new(
+ let mut progress = mozart_core::repository::downloader::DownloadProgress::new(
!args.no_progress,
format!("{} ({})", package.pretty_name(), package.pretty_version()),
);
- mozart_registry::downloader::install_package(
+ mozart_core::repository::downloader::install_package(
&dist.url,
&dist.kind,
dist.shasum.as_deref(),