-
Notifications
You must be signed in to change notification settings - Fork 663
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
fix typo and regular expression of algorithim #221
Conversation
40d169b looks good to me.
|
This was provide to allow case-insensitivity (although, we don't clarify this). If we do this, we would also have to remove |
On Wed, Aug 31, 2016 at 01:35:01PM -0700, Stephen Day wrote:
Case-insensitivity isn't hard to support, but I don't see a reason |
On Wed, Aug 31, 2016 at 01:44:38PM -0700, W. Trevor King wrote:
Actually, I'm pretty sure we don't want to support case insensitivity, It would be nice to have case-sensitive ref names too, but I don't see |
rebased, waiting for the CI ;) |
Sorry guys, not LGTM The Digests in this class are valid syntactically but may not be supported. This PR should only remove the uppercase components. We should also add a statement that a digest |
Sorry I missed the above in the initial review. |
On Thu, Sep 08, 2016 at 12:40:17PM -0700, Stephen Day wrote:
With af00de0, this PR updates descriptor.md to match defs-image.json. |
Yes, but as I said before, I'm asking that This provides for sufficient future proofing to defer algorithm to supportability validations rather than syntax validation. This will make for a much smoother transition if we ever encounter the dreaded break of |
On Thu, Sep 08, 2016 at 01:05:07PM -0700, Stephen Day wrote:
Agreed, but i think everyone also agrees that the specificaiton in
Sounds good. And I'd missed the ‘z’ earlier, so thanks for pointing |
this makes |
change regular expression of algorithim in defs-image.json to: "pattern": "^[a-z0-9_+.-]+" and make descriptor.md consistent with it. Signed-off-by: Deng Guangxing <dengguangxing@huawei.com>
75a51ed looks good to me.
|
Now that 75a51ed (fix regular expression of algorithim, 2016-08-30, opencontainers#221) has made the Markdown and JSON Schema consistent (and required lowercase algorithms), make digest comparisons easier by also requiring lowercase hex. This also: * Makes it easier to serve blobs out of a case-insensitive filesystem store. * Avoids having two otherwise-identical descriptor (or descriptor-containing) blobs with different hashes because they picked differend hex-casing. Signed-off-by: W. Trevor King <wking@tremily.us>
Now that 75a51ed (fix regular expression of algorithim, 2016-08-30, opencontainers#221) has made the Markdown and JSON Schema consistent (and required lowercase algorithms), make digest comparisons easier by also requiring lowercase hex. This also: * Makes it easier to serve blobs out of a case-insensitive filesystem store. * Avoids having two otherwise-identical descriptor (or descriptor-containing) blobs with different hashes because they picked differend hex-casing. Signed-off-by: W. Trevor King <wking@tremily.us>
Now that 75a51ed (fix regular expression of algorithim, 2016-08-30, opencontainers#221) has made the Markdown and JSON Schema consistent (and required lowercase algorithms), make digest comparisons easier by also requiring lowercase hex. This also: * Makes it easier to serve blobs out of a case-insensitive filesystem store. * Avoids having two otherwise-identical descriptor (or descriptor-containing) blobs with different hashes because they picked differend hex-casing. Signed-off-by: W. Trevor King <wking@tremily.us>
Now that 75a51ed (fix regular expression of algorithim, 2016-08-30, opencontainers#221) has made the Markdown and JSON Schema consistent (and required lowercase algorithms), make digest comparisons easier by also requiring lowercase hex. This also: * Makes it easier to serve blobs out of a case-insensitive filesystem store. * Avoids having two otherwise-identical descriptor (or descriptor-containing) blobs with different hashes because they picked differend hex-casing. Signed-off-by: W. Trevor King <wking@tremily.us>
regular expression of algorithim in defs-image.json:
"pattern": "^[a-z0-9]+:[a-fA-F0-9]+$"
make descriptor.md consistent with it.
Signed-off-by: Deng Guangxing dengguangxing@huawei.com