Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
Check license generation for every PR to avoid license-less crate additions (#10033)
Kirill Bulatov5602593089e3
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.ymlindex e6a0948f9ce..f9266c5f116 100644--- a/.github/workflows/ci.yml+++ b/.github/workflows/ci.yml@@ -54,6 +54,9 @@ jobs:- name: Check unused dependenciesuses: bnjbvr/cargo-machete@main+ - name: Check license generation+ run: script/generate-licenses /tmp/zed_licenses_output+- name: Ensure fresh mergeshell: bash -euxo pipefail {0}run: |diff --git a/crates/anthropic/Cargo.toml b/crates/anthropic/Cargo.tomlindex ba0284185ef..7d81209a9b1 100644--- a/crates/anthropic/Cargo.toml+++ b/crates/anthropic/Cargo.toml@@ -2,8 +2,8 @@name = "anthropic"version = "0.1.0"edition = "2021"--# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html+publish = false+license = "AGPL-3.0-or-later"[lib]path = "src/anthropic.rs"diff --git a/crates/anthropic/LICENSE-AGPL b/crates/anthropic/LICENSE-AGPLnew file mode 120000index 00000000000..5f5cf25dc45--- /dev/null+++ b/crates/anthropic/LICENSE-AGPL@@ -0,0 +1 @@+../../LICENSE-AGPL\ No newline at end of filediff --git a/script/generate-licenses b/script/generate-licensesindex ccecec7b851..79dd8845142 100755--- a/script/generate-licenses+++ b/script/generate-licenses@@ -2,7 +2,7 @@set -euo pipefail-OUTPUT_FILE=$(pwd)/assets/licenses.md+OUTPUT_FILE="${1:-$(pwd)/assets/licenses.md}"> $OUTPUT_FILE