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:
Alex Goodman
2026-10-29 22:40:50 -04:00
parent 4edc799fec
commit 8698886bf7
9 changed files with 9 additions and 117 deletions
+1 -3
View File
@@ -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