Support template-haskell 2.20.0 and unix-compat 0.7#2496
Support template-haskell 2.20.0 and unix-compat 0.7#2496locallycompact wants to merge 2 commits intodhall-lang:mainfrom
Conversation
|
Can you explain the |
|
Oh, right. In that case this fix is probably wrong. I'm not sure why PosixCompat.User was removed in 0.7, then. The Changelog doesn't say. |
|
Regarding haskell-pkg-janitors/unix-compat#2 (comment) . What is expected of these codepaths on Windows? |
|
I'm going to check if the corresponding |
|
Yeah, so it looks like some of the functionality that I think the best approach here is to disable that code path on Windows and I can put up the change for that. |
|
Actually, it seems like there are some tests that depended on Unix permissions that were running successfully on Windows. That seems surprising because as far as I can tell those tests would have transitively run cc: @mmhat: I wanted to know if you had any insight here. |
|
@Gabriella439 I'll have a look. |
|
Ok, the test didn't fail because we never tried to actually set the user or group in
That means, writing a proper test for that would mean that we make assumptions about the groups the user running the test is a member of... Unless I am missing something here. Since metadata is broken on Windows I think the best is to disable it there and throw an error if the user attempts to set it explicitly: #2507 |
|
@locallycompact: If you merge locallycompact#1 into your branch then I think it will fix the build failure on Windows |
|
Awesome thanks. Incidentally though this th fix is wrong though because it's 2.11.0 that should be the future-proof bound. However, PvP isn't respected for unreleased commits on ghc master, 2.11.0 doesn't exist yet, so I'm rethinking how to approach future proofing. I'll resubmit what can be merged. |
|
@locallycompact Are you still working on this? Dhall was remove from Stackage because of this issue. |
|
I will tidy this up, I'm a little indisposed atm but by all means feel free to do it before me. |
|
Closed in favor of #2541 |
Caught by https://gitlab.horizon-haskell.net/package-sets/horizon-core/-/jobs/197815