forked from vectordotdev/vector
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(deps): Add 3rd party license file and CI checks (vectordotdev#1…
…7344) * chore(deps): Add 3rd party license file and CI checks * Add comments on the external crate license overrides * Move installation of license tool to the environment prepare script
- Loading branch information
Showing
9 changed files
with
687 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
[overrides] | ||
"backon" = { origin = "https://github.com/Xuanwo/backon" } | ||
"bollard-stubs" = { origin = "https://github.com/fussybeaver/bollard" } | ||
"openssl-macros" = { origin = "https://github.com/sfackler/rust-openssl" } | ||
"serde_nanos" = { origin = "https://github.com/caspervonb/serde_nanos" } | ||
|
||
# These can go away once Vector starts using a release of the VRL crate with a | ||
# library field set up. | ||
"vrl" = { license = "MPL-2.0" } | ||
"vrl-compiler" = { license = "MPL-2.0" } | ||
"vrl-core" = { license = "MPL-2.0" } | ||
"vrl-diagnostic" = { license = "MPL-2.0" } | ||
"vrl-parser" = { license = "MPL-2.0" } | ||
"vrl-tests" = { license = "MPL-2.0" } | ||
|
||
# `ring` has a custom license that is mostly "ISC-style" but parts of it also fall under OpenSSL licensing. | ||
"ring-0.16.20" = { license = "ISC AND Custom" } | ||
|
||
# `rustls-webpki` doesn't specify their license in the metadata, but the file contains the ISC terms. | ||
"rustls-webpki-0.100.1" = { license = "ISC" } | ||
|
||
# `webpki` doesn't specify their license in the metadata, but the file contains the ISC terms. | ||
"webpki-0.21.4" = { license = "ISC" } | ||
"webpki-0.22.0" = { license = "ISC" } | ||
|
||
# `zerocopy` et al don't specify their licenses in the metadata, but the file contains the 2-clause BSD terms. | ||
"zerocopy-0.6.1" = { license = "BSD-2-Clause" } | ||
"zerocopy-derive-0.3.2" = { license = "BSD-2-Clause" } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
use anyhow::Result; | ||
|
||
use crate::app; | ||
|
||
/// Rebuild the 3rd-party license file. | ||
#[derive(clap::Args, Debug)] | ||
#[command()] | ||
pub struct Cli {} | ||
|
||
impl Cli { | ||
pub fn exec(self) -> Result<()> { | ||
app::exec("rust-license-tool", ["write"], true) | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
use anyhow::Result; | ||
|
||
use crate::app; | ||
|
||
/// Check that the 3rd-party license file is up to date | ||
#[derive(clap::Args, Debug)] | ||
#[command()] | ||
pub struct Cli {} | ||
|
||
impl Cli { | ||
pub fn exec(self) -> Result<()> { | ||
app::exec("rust-license-tool", ["check"], true) | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters