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

Selective strict #429

Open
robross0606 opened this issue Dec 25, 2024 · 0 comments
Open

Selective strict #429

robross0606 opened this issue Dec 25, 2024 · 0 comments

Comments

@robross0606
Copy link

robross0606 commented Dec 25, 2024

If strict is enabled, TAR_ENTRY_INFO messages cause an error which prematurely ends the operation even though it is:

An informative error indicating that an entry is being modified, but otherwise processed normally.

Conversely, disabling strict causes some warnings which we would prefer to abort early (e.g. TAR_ENTRY_INVALID). Is there a good pattern for applying "strictness" only to certain code values? For example, is there a clean way in an onwarn() handler to immediately treat something as strict by throwing a properly formed error?

@robross0606 robross0606 changed the title strict may be a bit too strict Selective strict Dec 25, 2024
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