-
Couldn't load subscription status.
- Fork 51
Use URI scheme #41
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use URI scheme #41
Conversation
Signed-off-by: Alex Goodman <[email protected]>
Signed-off-by: Alex Goodman <[email protected]>
Signed-off-by: Alex Goodman <[email protected]>
|
Looking closer at the That is, I think leaving This especially makes sense for digests and IDs --these are valid inputs only relative to the local Docker daemon. The rest of the changes would remain the same (docker-archive, oci-directory, etc). |
Signed-off-by: Alex Goodman <[email protected]>
|
After some discussion internally, we're sticking to purely URI schemes (no authority will be assumed/needed) |
Signed-off-by: Alex Goodman <[email protected]>
Signed-off-by: Alex Goodman <[email protected]>
Signed-off-by: Alex Goodman <[email protected]>
Signed-off-by: Alex Goodman <[email protected]>
0bdfdcc to
ae3f5d8
Compare
Signed-off-by: Alex Goodman <[email protected]>
Signed-off-by: Alex Goodman <[email protected]>
Today we allow for the following user input strings:
This PR aims to bring us closer to the URI specifications (RFC2396 and RFC3986) by eliminating the URL-specific authority indicator (
//) from the string requests and use purely a scheme approach:We also want to remove redundant options:
This is to minimize the risk of a scheme overlap with user input.
Lastly, we came to a conclusion from offline discussions that we should migrate image fixture utils from the
go-testutilsrepo to here, as currently there is a cyclic package dependency problem which complicates updating the feature set as a whole. These utils have been moved topkg/imagetest(this was a good PR to do so since a change to the utility functions was required for the above scheme changes).Partially addresses: anchore/syft#177 and anchore/grype#157