pub fn resolve( from: &str, spec: &str, index: &HashMap<&str, usize>, ws: &Workspace, ) -> Resolution