Stop guessing nightlies not included in manifests.txt (#3)

The file is now automatically updated after every release!
This commit is contained in:
Pietro Albini 2025-07-04 17:34:41 +02:00 committed by GitHub
parent 5ec24bbfaf
commit 032e023b25
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 7 additions and 76 deletions

View file

@ -15,7 +15,7 @@ use tracing::{debug, error, info};
use crate::{
db::{BuildMode, Db, FullBuildInfo, Status},
nightlies::{Nightlies, NightlyCache},
nightlies::Nightlies,
};
pub struct Toolchain(String);
@ -36,16 +36,15 @@ impl Display for Toolchain {
}
pub async fn background_builder(db: Db) -> Result<()> {
let mut nightly_cache = NightlyCache::default();
loop {
if let Err(err) = background_builder_inner(&db, &mut nightly_cache).await {
if let Err(err) = background_builder_inner(&db).await {
error!("error in background builder: {err}");
}
}
}
async fn background_builder_inner(db: &Db, nightly_cache: &mut NightlyCache) -> Result<()> {
let nightlies = Nightlies::fetch(nightly_cache)
async fn background_builder_inner(db: &Db) -> Result<()> {
let nightlies = Nightlies::fetch()
.await
.wrap_err("fetching nightlies")?;
let already_finished = db