Skip to content
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

[RFC] Implement "unsupported" tag entries #83

Open
cyphar opened this issue Nov 10, 2016 · 0 comments
Open

[RFC] Implement "unsupported" tag entries #83

cyphar opened this issue Nov 10, 2016 · 0 comments

Comments

@cyphar
Copy link
Contributor

cyphar commented Nov 10, 2016

This came up in #48 because implementing generic comparisons means we have to come to terms with the limitations of certain spec generators. In particular, because most tar archives don't have a . entry and they don't store directory sizes (see #77) there isn't a sane way of handling this implicitly -- we don't tag a manifest based on where it came from.

A solution that I think would work is if we always set the requested keywords on every object (which would ensure that you don't get Missing errors for keywords in #48). But if a keyword is not supported for that object we can set the value of the object to a special value like \x00 (which is not valid for any keyword).

This would be an extension of BSD's mtree(8), but I think it's a fairly safe one because all of the old code will continue to work (because BSD's mtree(8) doesn't support tar archives anyway).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant