-
Notifications
You must be signed in to change notification settings - Fork 200
Migrate to tar-0.6 #1283
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
Migrate to tar-0.6 #1283
Conversation
Could someone help me out with Nix Flake please? Never used Nix in my life unfortunately. |
Fixing it, will append a commit to this PR, sorry for the inconvenience |
I think it is fixed. Pardon the Your addition to the Flake This is effectively the same as Lines 34 to 36 in 6b71d16
but it will pull the library from NixPkgs instead of building it from Hackage, if possible. |
Thanks @peterbecich! @gbaz @ysangkok @andreasabel this is ready for review. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the upgrade!
explainTarError (LongNamesError err) = | ||
"There is an error in the format of entries with long names in the tar file: " ++ show err | ||
++ ". Check that it is a valid tar file (e.g. 'tar -xtf thefile.tar'). " | ||
++ "You may need to re-create the package tarball and try again." |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we get a test case that triggers this error?
Could be not easy to engineer, but it is good to have evidence for every error that it is possible to trigger.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are there tests for pre-existing errors somewhere? I can add a new one there.
This is a rare condition though: one has to have an intent to craft a malicious TAR, you cannot obtain one by mistake.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are there tests for pre-existing errors somewhere? I can add a new one there.
Yeah, that is the usual problem: There aren't enough tests to start with, so there isn't a good pretext to add some for new or changed features. One can't require adding a test infrastructure for a maintenance PR like this.
Looks ok to me. Happy to merge. |
Closes #1277.