Skip to content

Commit c05eb00

Browse files
chore: add extra curl flags for debugging build during feed.json failures (#2843)
1 parent 2274a7b commit c05eb00

File tree

2 files changed

+9
-7
lines changed

2 files changed

+9
-7
lines changed

crates/chat-cli/build.rs

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -355,8 +355,10 @@ fn download_feed_json() {
355355
.args([
356356
"-H",
357357
"Accept: application/vnd.github.v3.raw",
358-
"-s", // silent
359-
"-f", // fail on HTTP errors
358+
"-f", // fail on HTTP errors
359+
"-s", // silent
360+
"-v", // verbose output printed to stderr
361+
"--show-error", // print error message to stderr (since -s is used)
360362
"https://api.github.com/repos/aws/amazon-q-developer-cli-autocomplete/contents/feed.json",
361363
])
362364
.output();
@@ -371,9 +373,9 @@ fn download_feed_json() {
371373
},
372374
Ok(result) => {
373375
let error_msg = if !result.stderr.is_empty() {
374-
format!("HTTP error: {}", String::from_utf8_lossy(&result.stderr))
376+
format!("{}", String::from_utf8_lossy(&result.stderr))
375377
} else {
376-
"HTTP error occurred".to_string()
378+
"An unknown error occurred".to_string()
377379
};
378380
panic!("Failed to download feed.json: {}", error_msg);
379381
},

crates/chat-cli/src/cli/chat/tools/use_aws.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -397,7 +397,7 @@ mod tests {
397397
#[tokio::test]
398398
async fn test_eval_perm_auto_allow_readonly_default() {
399399
let os = Os::new().await.unwrap();
400-
400+
401401
// Test read-only operation with default settings (auto_allow_readonly = false)
402402
let readonly_cmd = use_aws! {{
403403
"service_name": "s3",
@@ -429,7 +429,7 @@ mod tests {
429429
#[tokio::test]
430430
async fn test_eval_perm_auto_allow_readonly_enabled() {
431431
let os = Os::new().await.unwrap();
432-
432+
433433
let agent = Agent {
434434
name: "test_agent".to_string(),
435435
tools_settings: {
@@ -475,7 +475,7 @@ mod tests {
475475
#[tokio::test]
476476
async fn test_eval_perm_auto_allow_readonly_with_denied_services() {
477477
let os = Os::new().await.unwrap();
478-
478+
479479
let agent = Agent {
480480
name: "test_agent".to_string(),
481481
tools_settings: {

0 commit comments

Comments
 (0)