Debian Patches

Status for grype/0.120.1+ds1-1

Patch Description Author Forwarded Bugs Origin Last update
0002-use-doublestar-v4.patch use doublestar v4 instead of v2 grype imports github.com/bmatcuk/doublestar twice, as /v2 in
grype/pkg/provider.go and grype/match/ignore.go and as /v4 elsewhere. Debian
ships only one major version (v4, golang-github-bmatcuk-doublestar-dev).
Both call sites use only doublestar.Match(pattern, name), whose signature is
the same in v4. A comparison of v2.0.4 and v4.10.0 on 238 pattern/path pairs,
including mid-segment "**" patterns, gave identical results, and grype's
match and pkg tests pass with v4. The now unused v2 requirement is dropped
from go.mod.

diff --git a/go.mod b/go.mod
index 6c984c6..6425348 100644
Juan Manuel Méndez Rey <juan.mendezr@proton.me> no 2026-09-27
0003-golden-ids-for-hashstructure-1.0.patch update package IDs in presenter golden files for hashstructure 1.0 syft derives package IDs from github.com/gohugoio/hashstructure with
SlicesAsSets. grype pins hashstructure v0.6.0; Debian ships 1.0.0, whose
"Fix hash collisions for sets containing duplicate elements" changes the
hash values. The IDs stay deterministic, only their values differ.
.
Replacing the two package IDs in the four golden files is enough: the
regenerated goldens differ from upstream's only in those two IDs (UUIDs,
timestamps and temporary paths are already masked by the tests), and with
this change the json and cyclonedx presenter tests pass against 1.0.0.

diff --git a/grype/presenter/cyclonedx/testdata/snapshot/TestCycloneDxPresenterDir.golden b/grype/presenter/cyclonedx/testdata/snapshot/TestCycloneDxPresenterDir.golden
index 92ba5e4..3c8aa53 100644
Juan Manuel Méndez Rey <juan.mendezr@proton.me> not-needed 2026-09-27
0004-use-moby-client.patch use github.com/moby/moby/client instead of github.com/docker/docker The docker/docker module ends at v28; Docker 29 publishes the client and
the API types as github.com/moby/moby/client and github.com/moby/moby/api,
and in Debian golang-github-docker-docker-dev becomes an empty transitional
package. syft and stereoscope already use moby/moby/client v0.6.0, which
grype requires indirectly.
.
The shell completion lists local images with client.New (API version
negotiation is now the default) and client.ImageListOptions with
client.Filters; ImageList returns the images in ImageListResult.Items.
The writer test takes the home directory from os.UserHomeDir instead of
docker/docker/pkg/homedir.

diff --git a/cmd/grype/cli/commands/completion.go b/cmd/grype/cli/commands/completion.go
index 8a57240..d744380 100644
Juan Manuel Méndez Rey <juan.mendezr@proton.me> no 2026-10-13
0005-sarif-schema-from-sarif-oasis-schemas.patch read the SARIF schema from sarif-oasis-schemas when it is installed The OASIS SARIF 2.1.0 schema is removed from the Debian source, because its
terms forbid modification. Debian ships it in sarif-oasis-schemas (non-free).
Test_SarifIsValid uses that copy and skips when neither copy is present.
Juan Manuel Méndez Rey <juan.mendezr@proton.me> not-needed 2026-11-04

All known versions for source package 'grype'

Links