We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a82f388 commit f0f2317Copy full SHA for f0f2317
src/commands/bindings.rs
@@ -34,8 +34,12 @@ impl GenerateBindingsCommand {
34
.join(SPIN_DEPS_WIT_FILE_NAME);
35
36
if !std::fs::exists(&wit_path)? {
37
- // TODO: warn that the file does not exist
38
- return Ok(());
+ anyhow::bail!(
+ r#"The WIT file that `spin deps` uses to track component dependencies doesn't exist. This can happen if:
39
+* the component name is incorrect
40
+* you've not previously run `spin deps add` for this component
41
+The expected file is {wit_path:?}"#
42
+ );
43
}
44
45
let mut resolve = Resolve::default();
0 commit comments