From 8cc1ba8a02c0318b65658f1634de378c780392b9 Mon Sep 17 00:00:00 2001 From: nsfisis Date: Sun, 10 May 2026 00:32:08 +0900 Subject: 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 --- crates/mozart/src/commands/reinstall.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'crates/mozart/src/commands/reinstall.rs') 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(), -- cgit v1.3.1