This commit is contained in:
Nilton Constantino
2026-02-02 17:52:20 +00:00
parent f80cb64f66
commit 66a77709f0
50 changed files with 806 additions and 225 deletions
+2 -2
View File
@@ -1,8 +1,8 @@
use anyhow::Result;
use serde::{Deserialize, Serialize};
use std::collections::HashMap;
use std::path::{Path, PathBuf};
use std::fs;
use anyhow::Result;
use std::path::{Path, PathBuf};
#[derive(Debug, Clone, Serialize, Deserialize)]
pub struct CacheManifest {
+5 -5
View File
@@ -1,8 +1,8 @@
use std::path::{Path, PathBuf};
use std::fs;
use std::process::Command;
use crate::deps::cache::{get_cache_root, get_git_worktree_path, CacheManifest, GitCacheEntry};
use crate::manifest::DependencySpec;
use crate::deps::cache::{CacheManifest, get_cache_root, get_git_worktree_path, GitCacheEntry};
use std::fs;
use std::path::{Path, PathBuf};
use std::process::Command;
#[derive(Debug)]
pub enum FetchError {
@@ -141,8 +141,8 @@ pub fn fetch_git(url: &str, version: &str, root_project_dir: &Path) -> Result<Pa
#[cfg(test)]
mod tests {
use super::*;
use tempfile::tempdir;
use std::fs;
use tempfile::tempdir;
#[test]
fn test_fetch_path_resolves_relative() {
@@ -1,9 +1,9 @@
use crate::deps::fetch::{fetch_dependency, FetchError};
use crate::manifest::{load_manifest, Manifest};
use crate::sources::{discover, ProjectSources, SourceError};
use serde::{Deserialize, Serialize};
use std::collections::{HashMap, HashSet};
use std::path::{Path, PathBuf};
use serde::{Deserialize, Serialize};
use crate::manifest::{Manifest, load_manifest};
use crate::deps::fetch::{fetch_dependency, FetchError};
use crate::sources::{ProjectSources, discover, SourceError};
#[derive(Debug, Clone, PartialEq, Eq, Hash, Serialize, Deserialize)]
pub struct ProjectId {