Skip to content

Conversation

@zanesq
Copy link
Collaborator

@zanesq zanesq commented Jun 27, 2025

Fixes

error: useless conversion to the same type: types::core::ToolCall
--> crates/goose-llm/src/message/mod.rs:154:20
|
154 |                 Ok(ToolCall::new("test_tool", json!({"param": "value"})).into()),
|                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider removing .into(): ToolCall::new("test_tool", json!({"param": "value"}))
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_conversion
= note: -D clippy::useless-conversion implied by -D warnings
= help: to override -D warnings add #[allow(clippy::useless_conversion)]


error: assert!(false, ..) should probably be replaced
--> crates/mcp-client/examples/integration_test.rs:27:18
|
27 |         Ok(_) => assert!(false, "Expected an error but got success"),
|                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: use panic!(..) or unreachable!(..)
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#assertions_on_constants
= note: -D clippy::assertions-on-constants implied by -D warnings
= help: to override -D warnings add #[allow(clippy::assertions_on_constants)]


error: useless conversion to the same type: types::core::ToolCall
--> crates/goose-llm/src/providers/formats/databricks.rs:684:20
|
684 |                 Ok(ToolCall::new("example", json!({"param1": "value1"})).into()),
|                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider removing .into(): ToolCall::new("example", json!({"param1": "value1"}))
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_conversion


error: the borrowed expression implements the required traits
--> crates/goose-llm/src/providers/formats/databricks.rs:804:35
|
804 |         std::fs::write(&png_path, &png_data)?;
|                                   ^^^^^^^^^ help: change this to: png_data
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args
= note: -D clippy::needless-borrows-for-generic-args implied by -D warnings
= help: to override -D warnings add #[allow(clippy::needless_borrows_for_generic_args)]


error: could not compile mcp-client (example "integration_test") due to 1 previous error
warning: build failed, waiting for other jobs to finish...
error: the borrowed expression implements the required traits
--> crates/goose-llm/src/providers/formats/openai.rs:677:35
|
677 |         std::fs::write(&png_path, &png_data)?;
|                                   ^^^^^^^^^ help: change this to: png_data
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args


error: the borrowed expression implements the required traits
--> crates/goose-llm/src/providers/utils.rs:280:35
|
280 |         std::fs::write(&png_path, &png_data).unwrap();
|                                   ^^^^^^^^^ help: change this to: png_data
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args


error: the borrowed expression implements the required traits
--> crates/goose-llm/src/providers/utils.rs:318:35
|
318 |         std::fs::write(&png_path, &png_data).unwrap();
|                                   ^^^^^^^^^ help: change this to: png_data
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args


error: could not compile goose-llm (lib test) due to 6 previous errors
error: unnecessary use of to_path_buf
--> crates/goose-mcp/src/developer/mod.rs:1698:49
|
1698 |         let mut builder = GitignoreBuilder::new(temp_dir.path().to_path_buf());
|                                                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use: temp_dir.path()
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_to_owned
= note: -D clippy::unnecessary-to-owned implied by -D warnings
= help: to override -D warnings add #[allow(clippy::unnecessary_to_owned)]


error: unnecessary use of to_path_buf
--> crates/goose-mcp/src/developer/mod.rs:1750:49
|
1750 |         let mut builder = GitignoreBuilder::new(temp_dir.path().to_path_buf());
|                                                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use: temp_dir.path()
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_to_owned


error: unnecessary use of to_path_buf
--> crates/goose-mcp/src/developer/mod.rs:1810:49
|
1810 |         let mut builder = GitignoreBuilder::new(temp_dir.path().to_path_buf());
|                                                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use: temp_dir.path()
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_to_owned


error: could not compile goose-mcp (lib test) due to 3 previous errors

and


failures:

---- routes::audio::tests::test_transcribe_endpoint_handles_invalid_base64 stdout ----

thread 'routes::audio::tests::test_transcribe_endpoint_handles_invalid_base64' panicked at crates/goose-server/src/routes/audio.rs:472:9:
assertion `left == right` failed
  left: 412
 right: 400
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

---- routes::audio::tests::test_transcribe_endpoint_validates_mime_type stdout ----

thread 'routes::audio::tests::test_transcribe_endpoint_validates_mime_type' panicked at crates/goose-server/src/routes/audio.rs:445:9:
assertion `left == right` failed
  left: 412
 right: 415


failures:
    routes::audio::tests::test_transcribe_endpoint_handles_invalid_base64
    routes::audio::tests::test_transcribe_endpoint_validates_mime_type

test result: FAILED. 16 passed; 2 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.65s

error: test failed, to rerun pass `-p goose-server --lib`

@zanesq zanesq merged commit ee0ae10 into main Jun 27, 2025
8 checks passed
@zanesq zanesq deleted the zane/fix-build branch June 27, 2025 17:43
zanesq added a commit that referenced this pull request Jun 27, 2025
* 'main' of github.com:block/goose:
  Fix clippy + test errors (#3120)
  Update goose help to include cli (#3095)
  add scheduler type  setting (#3119)
  Add a reference for recipes (#3099)
  feat: add voice dictation using OpenAI Whisper & ElevenLabs (#3079)
  feat: new cli provider for claude code and gemini (#3083)
  you forgot the important ones! (#3105)
  hotfix: fix build (#3102)
  Richer tool call ui messages (#3104)
  Update linux instructions (#3087)
ahau-square pushed a commit that referenced this pull request Jun 27, 2025
* origin/main:
  Added announcement modal (#3098)
  build: Add `just` to Hermit, correct ui/desktop's README (#3116)
  fix: Make the entire toolcall argument row clickable to expand (#3118)
  Fix clippy + test errors (#3120)
  Update goose help to include cli (#3095)
  add scheduler type  setting (#3119)
  Add a reference for recipes (#3099)
  feat: add voice dictation using OpenAI Whisper & ElevenLabs (#3079)
  feat: new cli provider for claude code and gemini (#3083)
  you forgot the important ones! (#3105)
  hotfix: fix build (#3102)
  Richer tool call ui messages (#3104)
  Update linux instructions (#3087)
  Add flag for showing cost tracking (#3090)
  Improve config file editing and recovery fallback mechanisms (#3082)
jsibbison-square added a commit that referenced this pull request Jun 29, 2025
…rcelain

* origin/main: (26 commits)
  docs: add more instructions about resuming a session for cli users (#3146)
  add claude 4 models (#3143)
  docs: cross reference recipe docs (#3141)
  docs: add recipes tutorial (#3132)
  Docs: recipe landing page (#3122)
  Run cargo fmt (#3135)
  Update Recipe Cookbook Submission Flow (#3064)
  chore(release): release version 1.0.30 (#3126)
  blog: everyday tasks for ai (#3103)
  fix windows session paths (#3130)
  update the path regex (#3129)
  wider support for cron schedules (#3123)
  feat: add optional view_range to text editor tool and text editor insert tool (#3093)
  Added announcement modal (#3098)
  build: Add `just` to Hermit, correct ui/desktop's README (#3116)
  fix: Make the entire toolcall argument row clickable to expand (#3118)
  Fix clippy + test errors (#3120)
  Update goose help to include cli (#3095)
  add scheduler type  setting (#3119)
  Add a reference for recipes (#3099)
  ...
s-soroosh pushed a commit to s-soroosh/goose that referenced this pull request Jul 18, 2025
cbruyndoncx pushed a commit to cbruyndoncx/goose that referenced this pull request Jul 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants