Skip to content

Commit

Permalink
🐛 Filter out queries with compilation issues w/ pub registry (#929)
Browse files Browse the repository at this point in the history
Fixes #927
  • Loading branch information
jaym authored Nov 4, 2023
1 parent 08a29aa commit 94c3716
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion policy/scan/fetcher.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,11 @@ func (f *fetcher) fetchBundles(ctx context.Context, schema llx.Schema, urls ...s
}

// need to generate MRNs for everything
if _, err := cur.Compile(ctx, schema, nil); err != nil {
if _, err := cur.CompileExt(ctx, policy.BundleCompileConf{
Schema: schema,
Library: nil,
RemoveFailing: true,
}); err != nil {
return nil, errors.Wrap(err, "failed to compile fetched bundle")
}

Expand Down

0 comments on commit 94c3716

Please sign in to comment.