diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e6a0948f9c..f9266c5f11 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -54,6 +54,9 @@ jobs: - name: Check unused dependencies uses: bnjbvr/cargo-machete@main + - name: Check license generation + run: script/generate-licenses /tmp/zed_licenses_output + - name: Ensure fresh merge shell: bash -euxo pipefail {0} run: | diff --git a/crates/anthropic/Cargo.toml b/crates/anthropic/Cargo.toml index ba0284185e..7d81209a9b 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-AGPL new file mode 120000 index 0000000000..5f5cf25dc4 --- /dev/null +++ b/crates/anthropic/LICENSE-AGPL @@ -0,0 +1 @@ +../../LICENSE-AGPL \ No newline at end of file diff --git a/script/generate-licenses b/script/generate-licenses index ccecec7b85..79dd884514 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