facebook / buck2

Build system, successor to Buck
https://buck2.build/
Apache License 2.0
3.38k stars 200 forks source link

License details (for SPDX compliance) #554

Open toothbrush7777777 opened 4 months ago

toothbrush7777777 commented 4 months ago

I would like to clarify something about the licenses that the Buck2 prelude is released under. In the prelude, it says this:

This source code is licensed under both the MIT license found in the LICENSE-MIT file in the root directory of this source tree and the Apache License, Version 2.0 found in the LICENSE-APACHE file in the root directory of this source tree.

Is the meaning in SPDX notation Apache-2.0 AND MIT (i.e. you must comply with both licenses) or Apache-2.0 OR MIT (i.e. you may choose to use the file under either license)?

dtolnay commented 4 months ago

Or is MIT OR Apache-2.0, the same license used by rustc and many other foundational Rust projects.

https://github.com/facebook/buck2/blob/bcbc65cf78da566de0394459ff96c3e0186dba77/Cargo.toml#L105-L106

I agree the wording describing this in the prelude is unclear. Thank you for flagging this.

toothbrush7777777 commented 4 months ago

Thank you for clarifying.