From 11b0d25fcb6bd6a5505a76c1767b0aab314e042d Mon Sep 17 00:00:00 2001 From: MarcoIeni <11428655+MarcoIeni@users.noreply.github.com> Date: Fri, 23 Aug 2024 09:10:52 +0200 Subject: [PATCH] deny repos under the `archive` directory --- src/data.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/data.rs b/src/data.rs index 4c3fbe24f..57c761ca0 100644 --- a/src/data.rs +++ b/src/data.rs @@ -47,7 +47,7 @@ impl Data { data.load_dir("repos", true, |this, org, repo: Repo, path: &Path| { if org == "archive" { - return Ok(()); + bail!("repo '{}' is located in the 'archive/' directory. Move it into the org subdirectory, e.g. 'archive/rust-lang/'", repo.name); } validate_repo(org, &repo, path)?;