-
Notifications
You must be signed in to change notification settings - Fork 724
support tar-0.7.0.0 #11209
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
support tar-0.7.0.0 #11209
Conversation
|
You know, this is skipping FreeBSD whereas my fork is trying to run it. Is there a flipped conditional somewhere? /cc: @hasufell |
|
Looks like to get CI to do it requires |
|
The reason for cabal/cabal-install/src/Distribution/Client/Tar.hs Lines 58 to 59 in 6915c20
to BS.writeFile tar . GZip.compress =<< Tar.write' =<< Tar.pack' base [dir] when tar >= 0.7. It's not strictly necessary to do in this PR (one can argue that simply allowing a new tar is already a step forward), but I think it would make sense to combine.
|
|
I thought I'd remembered something along those lines, so I went looking at the changelog but it didn't tell me anything useful about that (I suppose it's not an API change but a per-consumer choice?). |
|
Yeah, I should have probably highlighted it in the changelog explicitly, sorry for this. |
|
Meanwhile our backward compatibility requirements mean hiding this in |
I think it's |
This PR does not run the release pipeline. It's skipped. Your fork runs the release pipeline scheduled only and skips FreeBSD: https://github.com/geekosaur/cabal/actions/runs/17522152727 |
ulysses4ever
left a comment
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!
|
Unlabeling and dismissing review until I have time to work on the updated call convention this afternoon. That's what will really need to be reviewed. |
change is incomplete, and the next step is the one that really needs to be reviewed
Well, except that getting a change released so we can use it can incur a delay, and conceivably it will require the same kind of modification. |
|
BTW is there some particular reason why |
eb76dc8 to
08d50a2
Compare
08d50a2 to
08d384a
Compare
Use the new functionality (which didn't make the changelog) when available; see haskell#11131. This moves `createTarGzFile` to `Distribution.Client.Compat.Tar` with a re-export.
08d384a to
85c6c98
Compare
|
This is what I get for having to get up 2 hours earlier than usual, sigh. |
Bodigrim
left a comment
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.
I tested that this patch is compatible with both old and new tar by running
cabal build cabal-install -c 'tar<0.7'
and
cabal build cabal-install -c 'tar>=0.7' --allow-newer='hackage-security:tar'
|
Hrm. Apparently I can't run a triggered workflow on a PR? (after having to dig into the workflow file to see how to specify the allow-newer/constraints correctly; I'm making a note to add that to the maintainers readme in #10503) |
Mikolaj
left a comment
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.
Thank you!
The changelog says the only significant change is to
GenEntries, which we don't appear to use (local build would have gotten a type error).Template B: This PR does not modify behaviour or interface
E.g. the PR only touches documentation or tests, does refactorings, etc.
Include the following checklist in your PR: