clearlydefined / service

The service side of clearlydefined.io
MIT License
45 stars 40 forks source link

Precedence is not preserved when joining Scancode license expressions #1084

Closed qtomlinson closed 3 months ago

qtomlinson commented 6 months ago

Expected:

When joining license expressions with AND:

Precedence should be preserved in the result. The joined expression should be: GPL AND (MIT OR Apache-2.0)

Observed:

Precedence is not preserved in the result. The observed result is GPL AND MIT OR Apache-2.0

Reproducing Steps:

This relates to https://github.com/clearlydefined/service/pull/1056#discussion_r1527021349