Skip to content

Commit

Permalink
Disable cargo about talking to clearlydefined.io.
Browse files Browse the repository at this point in the history
This is a workaround for a lack of rate limiting causing failures
(<EmbarkStudios/cargo-about#218>), but also,
it does not seem to be necessary for my use case (no unknown licenses
are reported), so we might as well *not* talk to an external service.

Also add `--fail` option to fail the build if there ever is a problem
license.
  • Loading branch information
kpreid committed Mar 9, 2023
1 parent f69874e commit cc2f5ec
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions about.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,5 @@ accepted = [
]

private = { ignore = true }

no-clearly-defined = true
1 change: 1 addition & 0 deletions xtask/src/xtask.rs
Original file line number Diff line number Diff line change
Expand Up @@ -525,6 +525,7 @@ fn ensure_wasm_tools_installed(time_log: &mut Vec<Timing>) -> Result<(), ActionE
.args([
"about",
"generate",
"--fail",
license_template_path.to_str().unwrap(),
"-o",
license_html_path.to_str().unwrap(),
Expand Down

0 comments on commit cc2f5ec

Please sign in to comment.