Skip to content

Commit 6de6ec0

Browse files
committed
default
1 parent 6cb8539 commit 6de6ec0

File tree

3 files changed

+11
-0
lines changed

3 files changed

+11
-0
lines changed

libindex/libindex.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import (
66
"encoding/hex"
77
"errors"
88
"fmt"
9+
"github.com/quay/claircore/chainguard"
910
"io"
1011
"net/http"
1112
"sort"
@@ -96,6 +97,7 @@ func New(ctx context.Context, opts *Options, cl *http.Client) (*Libindex, error)
9697
opts.Ecosystems = []*indexer.Ecosystem{
9798
dpkg.NewEcosystem(ctx),
9899
alpine.NewEcosystem(ctx),
100+
chainguard.NewEcosystem(ctx),
99101
rhel.NewEcosystem(ctx),
100102
rpm.NewEcosystem(ctx),
101103
python.NewEcosystem(ctx),

matchers/defaults/defaults.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ package defaults
33

44
import (
55
"context"
6+
"github.com/quay/claircore/chainguard"
67
"sync"
78
"time"
89

@@ -46,6 +47,8 @@ func Error() error {
4647
var defaultMatchers = []driver.Matcher{
4748
&alpine.Matcher{},
4849
&aws.Matcher{},
50+
chainguard.ChainguardMatcher,
51+
chainguard.WolfiMatcher,
4952
&debian.Matcher{},
5053
&gobin.Matcher{},
5154
&java.Matcher{},

updater/defaults/defaults.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ package defaults
55

66
import (
77
"context"
8+
"github.com/quay/claircore/chainguard"
89
"sync"
910
"time"
1011

@@ -55,6 +56,11 @@ func inner(ctx context.Context) error {
5556
return err
5657
}
5758
updater.Register("debian", df)
59+
cf, err := chainguard.NewFactory(ctx)
60+
if err != nil {
61+
return err
62+
}
63+
updater.Register("chainguard", cf)
5864

5965
updater.Register("osv", new(osv.Factory))
6066
updater.Register("rhel-vex", new(vex.Factory))

0 commit comments

Comments
 (0)