Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .nextchanges/bundles/warn-for-missing-databricks-yml.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Provide an actionable error message if databricks.yml is missing ([#5953](https://github.com/databricks/cli/pull/5953)).
2 changes: 1 addition & 1 deletion acceptance/bundle/run/inline-script/no-bundle/output.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

>>> [CLI] bundle run -- echo hello
Error: unable to locate bundle root: databricks.yml not found
Error: unable to locate bundle root: databricks.yml not found. Run 'databricks bundle init' to create a bundle, or run this command from a directory that already contains one


Exit code: 1
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

>>> [CLI] bundle run echo hello
Error: unable to locate bundle root: databricks.yml not found
Error: unable to locate bundle root: databricks.yml not found. Run 'databricks bundle init' to create a bundle, or run this command from a directory that already contains one


Exit code: 1
2 changes: 1 addition & 1 deletion bundle/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ func getRootWithTraversal() (string, error) {
}
}

return "", fmt.Errorf(`unable to locate bundle root: %s not found`, config.FileNames[0])
return "", fmt.Errorf(`unable to locate bundle root: %s not found. Run 'databricks bundle init' to create a bundle, or run this command from a directory that already contains one`, config.FileNames[0])
}

// mustGetRoot returns a bundle root or an error if one cannot be found.
Expand Down
Loading