mirror of
https://github.com/anchore/syft.git
synced 2026-11-02 15:36:41 +01:00
revert: drop the squash-only image read and bump stereoscope
stereoscope is replacing `image.WithImageSquashOnly` with lazy layer squashes, where every layer keeps a usable squash. That removes the need for `GetSourceConfig.WithImageSquashOnly` and the scope guard in `FileResolver`, so both go. - bumps stereoscope to `feat/lazy-layer-squashes` (anchore/stereoscope `43c8f7e`), pending that PR merging Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com>
This commit is contained in:
@@ -239,9 +239,7 @@ func getSource(ctx context.Context, opts *options.Catalog, userInput string, sou
|
||||
}).
|
||||
WithBasePath(opts.Source.BasePath).
|
||||
WithSources(sources...).
|
||||
WithDefaultImagePullSource(opts.Source.Image.DefaultPullSource).
|
||||
// only the squashed scope reads from the image squash alone, every other scope needs each layer's squash
|
||||
WithImageSquashOnly(source.ParseScope(opts.Scope) == source.SquashedScope)
|
||||
WithDefaultImagePullSource(opts.Source.Image.DefaultPullSource)
|
||||
|
||||
var err error
|
||||
var platform *image.Platform
|
||||
|
||||
Reference in New Issue
Block a user