Skip to content

Commit

Permalink
Merge pull request #146 from webern/revert-force-upstream
Browse files Browse the repository at this point in the history
buildsys: revert removal of force-upstream
  • Loading branch information
webern authored Jan 29, 2024
2 parents 26888be + ab84c09 commit 3a3bc9f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion tools/buildsys/src/cache.rs
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ impl LookasideCache {
}
Err(e) => {
// next check with upstream, if permitted
if upstream_fallback {
if f.force_upstream.unwrap_or(false) || upstream_fallback {
println!("Error fetching from lookaside cache: {}", e);
println!("Fetching {:?} from upstream source", url_file_name);
Self::fetch_file(&f.url, &tmp, hash)?;
Expand Down
1 change: 1 addition & 0 deletions tools/buildsys/src/manifest.rs
Original file line number Diff line number Diff line change
Expand Up @@ -566,6 +566,7 @@ pub struct ExternalFile {
pub path: Option<PathBuf>,
pub sha512: String,
pub url: String,
pub force_upstream: Option<bool>,
pub bundle_modules: Option<Vec<BundleModule>>,
pub bundle_root_path: Option<PathBuf>,
pub bundle_output_path: Option<PathBuf>,
Expand Down

0 comments on commit 3a3bc9f

Please sign in to comment.