Release v2.1.1
Overview
This is a minor bug fix release. Provides better error messages for malformed expressions.
Required Actions for Updating
Run the following to update to this release.
go get github.com/github/go-spdx/[email protected]
Details
invalid expression | error message |
---|---|
(MIT |
open parenthesis does not have a matching close parenthesis |
MIT) |
close parenthesis does not have a matching open parenthesis |
)MIT |
expression starts with close parenthesis |
MIT APACHE-2.0 |
licenses or expressions are not separated by an operator |
MIT OR |
expected expression following OR, but found none |
MIT AND |
expected expression following AND, but found none |
OR MIT |
expression starts with OR |
AND MIT |
expression starts with AND |
MIT OR OR Apache-2.0 |
expected license or expression, but found OR |
MIT AND AND Apaches-2.0 |
expected license or expression, but found AND |
when cause is unknown | syntax error |
What's Changed
- improve checking for syntax errors #37 (elrayle)