You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Due to an update to tokio and futures in #94, the throttling for futures was removed. If this causes instability when running bender, the throttling will have to be refactored as well. Please report any instability you may notice (possibly too many simultaneous git requests).
let partial: config::PartialManifest = serde_yaml::from_str(&data)
.map_err(|cause| {
Error::chain(
format!(
"Syntax error in manifest of dependency `{}` at \
revision `{}`.",
dep_name, rev
),
cause,
)
})?;
letmut full = partial.validate().map_err(|cause| {
Error::chain(
format!(
"Error in manifest of dependency `{}` at revision \
`{}`.",
dep_name, rev
),
cause,
)
})?;
// Add base path to path dependencies within git repositories
for dep in full.dependencies.iter_mut(){
match dep {
(_, config::Dependency::Path(ref path)) => {
if !path.starts_with("/"){
if !self.get_package_path(dep_id).exists(){
warnln!("Please note that dependencies for {:?} may not be available unless {:?} is properly checked out.\n (to checkout run `bender sources` and then `bender update` again).", dep.0, full.package.name);
}
*dep.1 = config::Dependency::Path(
self.get_package_path(dep_id).join(path).clone(),
);
}
}
(_, _) => {}
}
}
Ok(Some(self.sess.intern_manifest(full)))
}
None => Ok(None),
};
let manifest = manifest?;
self.sess
.cache
.dependency_manifest_version
.lock()
.unwrap()
.insert(cache_key, manifest);
if dep.name
!= match manifest {
Some(x) => &x.package.name,
None => "dead",
}
{
warnln!("Dependency name and package name do not match for {:?} / {:?}, this can cause unwanted behavior",
dep.name, match manifest {
Some(x) => &x.package.name,
None => "dead"
});// TODO (micprog): This should be an error
}
Ok(manifest)
The text was updated successfully, but these errors were encountered:
Due to an update to tokio and futures in #94, the throttling for futures was removed. If this causes instability when running bender, the throttling will have to be refactored as well. Please report any instability you may notice (possibly too many simultaneous git requests).
Relevant code sections:
src/future_throttle.rs
bender/src/sess.rs
Lines 500 to 519 in f82ef0e
bender/src/sess.rs
Lines 528 to 545 in f82ef0e
bender/src/sess.rs
Lines 809 to 834 in f82ef0e
bender/src/sess.rs
Lines 892 to 961 in f82ef0e
The text was updated successfully, but these errors were encountered: