couchbase / sync_gateway

Manages access and synchronization between Couchbase Lite and Couchbase Server
https://www.couchbase.com/products/sync-gateway
Other
447 stars 138 forks source link

Add SPDX identifiers to LICENSE file for reliable license detection #7116

Closed bbrks closed 1 month ago

bbrks commented 1 month ago

This change adds SPDX license idenfiers for the licenses we use, which https://pkg.go.dev should be able to use to reliably identify the license information and properly build the module documentation. This will help with development as it allows us to use a pretty standard resource, instead of requiring local go doc parsers or worse, going without.

https://spdx.dev/learn/handling-license-info/

The AND is conjunctive and signals that BOTH licenses must be complied with. OR would misleadingly lead people to believe they can choose which license applies, which is not our current policy.

https://spdx.github.io/spdx-spec/v3.0.1/annexes/spdx-license-expressions/#conjunctive-and-operator


Screenshot 2024-09-11 at 16 03 27

https://pkg.go.dev/license-policy

If we are not able to detect one of the licenses below, only limited package and module information will be made available.

Integration Tests

bbrks commented 1 month ago

pkg.go.dev doesn't deal with dual-licenses very well, and require special manual exceptions from them if we want it published... Just won't bother.