Skip to content

Commit a8454f1

Browse files
committed
fix: remove downloading feed during build
1 parent c05eb00 commit a8454f1

File tree

2 files changed

+3
-12
lines changed

2 files changed

+3
-12
lines changed

crates/chat-cli/build.rs

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -83,11 +83,6 @@ fn write_plist() {
8383
fn main() {
8484
println!("cargo:rerun-if-changed=def.json");
8585

86-
// Download feed.json if FETCH_FEED environment variable is set
87-
if std::env::var("FETCH_FEED").is_ok() {
88-
download_feed_json();
89-
}
90-
9186
#[cfg(target_os = "macos")]
9287
write_plist();
9388

@@ -331,12 +326,9 @@ fn main() {
331326
/// Downloads the latest feed.json from the autocomplete repository.
332327
/// This ensures official builds have the most up-to-date changelog information.
333328
///
334-
/// # Errors
335-
///
336-
/// Prints cargo warnings if:
337-
/// - `curl` command is not available
338-
/// - Network request fails
339-
/// - File write operation fails
329+
/// TODO - temporarily disabled since GitHub API seems to be very strict with rate limiting,
330+
/// causing builds to fail.
331+
#[allow(dead_code)]
340332
fn download_feed_json() {
341333
use std::process::Command;
342334

scripts/build.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,6 @@ def build_chat_bin(
8787
env={
8888
**os.environ,
8989
**rust_env(release=release),
90-
"FETCH_FEED": "1", # Always fetch latest feed.json for official builds
9190
},
9291
)
9392

0 commit comments

Comments
 (0)