DRAFT: Improve architecture selection #187
Closed
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This is a draft PR to track improving architecture selection in stereoscope.
Basically, when a user of
syft
orgrype
specifies a digest, we should not validate the platform, since a digest is an unambiguous reference, but we fail on the platofrm. For example:This was probably introduced by #152 in fixing #149.
The goal of this change is to preserve the fix to #149 but remove the issue, seen via
grype
above, where unambiguous requests fail atstereoscope/pkg/image/docker/daemon_provider.go
Line 348 in e14bc44
--platform
.It's a draft pull request for now because I need to make test images at https://github.com/anchore/test-images to exercise the different scenarios in stereoscope integration tests before it can be merged.