Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Check license generation for every PR to avoid license-less crate additions #10033

Merged
merged 2 commits into from
Apr 1, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand Down
4 changes: 2 additions & 2 deletions crates/anthropic/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
1 change: 1 addition & 0 deletions crates/anthropic/LICENSE-AGPL
2 changes: 1 addition & 1 deletion script/generate-licenses
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

set -euo pipefail

OUTPUT_FILE=$(pwd)/assets/licenses.md
OUTPUT_FILE="${1:-$(pwd)/assets/licenses.md}"

> $OUTPUT_FILE

Expand Down
Loading