]> Repositorios git - classgraph.git/commit
classgraph-plugin-flag.sh: offer every store-registered version
authorJavier Sagredo <[email protected]>
Thu, 18 Jun 2026 23:19:40 +0000 (01:19 +0200)
committerJavier Sagredo <[email protected]>
Thu, 18 Jun 2026 23:19:40 +0000 (01:19 +0200)
commite8a7716e251d4bed771d0d0e20c95347170b10d8
tree78dc89c1b39ac9bedd68e7aba15a7fda8844613b
parentcbb691d6b2123a6e20c30dbafaa9c16309042f8f
classgraph-plugin-flag.sh: offer every store-registered version

The store can register several classgraph versions in one db (e.g.
0.2.0.0 alongside 0.2.1.0). The discovery code took only `head -1` of
ghc-pkg's id/library-dirs output, locking onto whichever version sorted
first and reconstructing its .so name — which may not even exist on
disk, leaving the store contributing no candidate at all.

Iterate over every library-dir ghc-pkg reports and glob for the actual
.so in each, so all present builds become candidates and the chooser
can disambiguate.

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
classgraph-plugin-flag.sh