You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Change executable_name to hold the full command string
Previously, executable_name held just the binary name and the error
message hardcoded " generate" as the subcommand:
format!("CODEOWNERS out of date. Run `{} generate` ...", executable_name)
This made it impossible for wrappers (like the code_ownership Ruby gem)
to show the correct command in the error message, since their update
command is not "<binary> generate".
Now executable_name holds the full command to run. The format string
no longer appends " generate". The default changes from "codeowners"
to "codeowners generate" so existing behavior is preserved for users
who do not customize the field.
Users with a custom executable_name in config/code_ownership.yml will
need to append their subcommand — e.g. change:
executable_name: my-tool
to:
executable_name: my-tool generate
Copy file name to clipboardExpand all lines: src/ownership/validator.rs
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -169,7 +169,7 @@ impl Error {
169
169
Error::FileWithoutOwner{path: _ } => "Some files are missing ownership".to_owned(),
170
170
Error::FileWithMultipleOwners{path: _,owners: _ } => "Code ownership should only be defined for each file in one way. The following files have declared ownership in multiple ways".to_owned(),
0 commit comments