From eee5f8d665566e97acc5600a75ffe65da40263cc Mon Sep 17 00:00:00 2001 From: Lorenzo Delgado Date: Fri, 13 Feb 2026 20:12:19 +0100 Subject: [PATCH] fix(ampup): remove references to defunct amp-private repository The amp-private repository no longer exists. Remove all references to prevent 404 errors and restore default build functionality. - Remove `DEFAULT_REPO_PRIVATE` constant from `lib.rs` - Replace `DEFAULT_REPO_PRIVATE` with `DEFAULT_REPO` in build command - Point default builds to public `edgeandnode/amp` repository - Fix 404 errors when building without explicit `--repo` flag Signed-off-by: Lorenzo Delgado --- .agents/settings.local.json | 24 ------------------------ ampup/src/commands/build.rs | 10 +++++----- ampup/src/lib.rs | 3 --- 3 files changed, 5 insertions(+), 32 deletions(-) delete mode 100644 .agents/settings.local.json diff --git a/.agents/settings.local.json b/.agents/settings.local.json deleted file mode 100644 index 4695063..0000000 --- a/.agents/settings.local.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "permissions": { - "allow": [ - "Bash(find:*)", - "Bash(just fmt-file:*)", - "Bash(just fmt-rs:*)", - "Bash(just check:*)", - "Bash(just check-rs:*)", - "Bash(just check-crate:*)", - "Bash(just clippy:*)", - "Bash(just clippy-crate:*)", - "Bash(just test-local:*)", - "Bash(just test-crate:*)", - "Skill(research-github-project)", - "Bash(test:*)", - "Bash(just --list:*)", - "Bash(grep:*)", - "Bash(just build --help:*)", - "Bash(just check-sh:*)", - "Bash(just fmt-sh:*)", - "Bash(just fmt-sh-check:*)" - ] - } -} diff --git a/ampup/src/commands/build.rs b/ampup/src/commands/build.rs index ea445af..064dcc5 100644 --- a/ampup/src/commands/build.rs +++ b/ampup/src/commands/build.rs @@ -3,7 +3,7 @@ use std::path::PathBuf; use anyhow::Result; use crate::{ - DEFAULT_REPO_PRIVATE, + DEFAULT_REPO, builder::{BuildOptions, BuildSource, Builder}, config::Config, ui, @@ -30,19 +30,19 @@ pub async fn run( (None, Some(repo), None, None, Some(number)) => BuildSource::Pr { repo, number }, (None, Some(repo), None, None, None) => BuildSource::Main { repo }, (None, None, Some(branch), None, None) => BuildSource::Branch { - repo: DEFAULT_REPO_PRIVATE.to_string(), + repo: DEFAULT_REPO.to_string(), branch, }, (None, None, None, Some(commit), None) => BuildSource::Commit { - repo: DEFAULT_REPO_PRIVATE.to_string(), + repo: DEFAULT_REPO.to_string(), commit, }, (None, None, None, None, Some(number)) => BuildSource::Pr { - repo: DEFAULT_REPO_PRIVATE.to_string(), + repo: DEFAULT_REPO.to_string(), number, }, (None, None, None, None, None) => BuildSource::Main { - repo: DEFAULT_REPO_PRIVATE.to_string(), + repo: DEFAULT_REPO.to_string(), }, _ => unreachable!("Clap should prevent conflicting options"), }; diff --git a/ampup/src/lib.rs b/ampup/src/lib.rs index cea1ee0..c6b953f 100644 --- a/ampup/src/lib.rs +++ b/ampup/src/lib.rs @@ -14,8 +14,5 @@ pub mod ui; /// Default GitHub repository for amp releases pub const DEFAULT_REPO: &str = "edgeandnode/amp"; -/// Default GitHub repository for amp development -pub const DEFAULT_REPO_PRIVATE: &str = "edgeandnode/amp-private"; - #[cfg(test)] mod tests;