Repository navigation
Conversation
osv-linter's PKG:002 check requires every version in an ECOSYSTEM range to exist in opam-repository (or opam-repository-archive). Replace lower bounds that are not released versions with the earliest real one: - OSEC-2017-01: ocaml "4.04" -> "4.04.0" - OSEC-2022-01: solo5 "0.6.6" -> "0.7.0"; 0.6.x was released as solo5-bindings-xen, which is now mentioned in the advisory text - OSEC-2023-01: opam-repository "2" -> "2.0.0~beta", the first release containing the download cache (cfa4e77); "2" also included 2.0~alpha5 - OSEC-2026-01, -05, -25, -26: ocaml "5" -> "5.0.0" - OSEC-2026-09: albatross "1.0.0" -> "1.0.1", the first opam release Signed-off-by: Boning <me@boni.ng> Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
7dbf0fe to
d452958
Compare
|
I understand what is done here, but at the same time I wonder why this is needed. The expression in the |
Then should we list those version in the OPAM purl and ecosystem type? Should they just list them under SEMVER type? Edit: this is mainly done for the osv-lint. I see 3 options:
|
|
The |
|
We are talking about different section security-advisories/2017/OSEC-2017-01.json Lines 24 to 35 in 69b6178 |
|
Using package versions that exist (or have existed) in the repository can prevent typos, OTOH I agree with #50 (comment) that ">= 5" should be just as valid as ">= 5.0.0". Since the tool already knows how to expand the semver range into exact versions, then it should be possible to make it emit exact |
osv-linter's PKG:002 check requires every version in an ECOSYSTEM range to exist in opam-repository (or opam-repository-archive). Replace lower bounds that are not released versions with the earliest real one:
beta", the first release containing the download cache (cfa4e77); "2" also included 2.0alpha5