-
Notifications
You must be signed in to change notification settings - Fork 5
Rv crate #190
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
+314
−96
Closed
Rv crate #190
Changes from all commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
9c13180
publicizing a few structs/items to use rv better as a crate
weswc 12a6b31
publicize package file parsing
weswc 5fb7445
formatting
weswc a27b6cd
remove change to resolver imports
weswc 375d69c
formatting + parse_dependencies
weswc aeabb6f
minimal docustrings for pub objects
weswc 56145e7
pub InstallationStatus + some allow missing docs
weswc 8ea82d4
simplification of docs
weswc 566dd15
make package source public
weswc 2043666
pub repositoryDatabase source_packages and binary_packages
weswc 7a18cbf
only need to pub source_packages, not binary_packages
weswc f070eb8
pub url and remove source pub
weswc 2c7152e
impl Hash on lockfile::Source
weswc d1f2cb5
making operator field of VersionRequirement pub
weswc c6b9b6d
pub dependencies of ResolvedDependency
weswc c36f526
pub sync changes as results for SyncHandler
weswc File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
#![allow(missing_docs)] | ||
|
||
use std::error::Error; | ||
use std::fmt; | ||
use std::fmt::Formatter; | ||
|
@@ -13,6 +15,7 @@ use crate::lockfile::Source; | |
use crate::{SystemInfo, Version}; | ||
|
||
#[derive(Debug, Clone)] | ||
/// Expected paths to the package in the cache for both source and binary. Does not guarantee a package will exist at the location | ||
pub struct PackagePaths { | ||
pub binary: PathBuf, | ||
pub source: PathBuf, | ||
|
@@ -72,7 +75,6 @@ pub struct DiskCache { | |
} | ||
|
||
impl DiskCache { | ||
/// Instantiate our cache abstraction. | ||
pub fn new( | ||
r_version: &Version, | ||
system_info: SystemInfo, | ||
|
@@ -139,6 +141,7 @@ impl DiskCache { | |
self.root.join("urls").join(encoded) | ||
} | ||
|
||
/// Get the path to the cloned git repo | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. If the comment is redundant with the function name, you can |
||
pub fn get_git_clone_path(&self, repo_url: &str) -> PathBuf { | ||
let encoded = hash_string(&repo_url.trim_end_matches("/").to_ascii_lowercase()); | ||
self.root.join("git").join(encoded) | ||
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
#![allow(missing_docs)] | ||
|
||
use std::fmt; | ||
use std::path::PathBuf; | ||
|
||
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
#![allow(missing_docs)] | ||
use std::process::Command; | ||
|
||
mod local; | ||
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think the
read_and_verify_config
was implemented from this convo #107 (comment).I abstracted one level so that it keeps a fxn taking it a DocumentMut, but can change it to whatever you feel is best
#107 (comment)