You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@hvr has also said that he wanted someone to verify that the Binary instances remained compatible (although I'll admit I don't know which Binary instances he was referring to; I don't see any such non-trivial instances in hackage-server).
Ahh, I see. hackage-server uses cereal's Serialize class, not Binary. This is likely what @hvr was referring to. I compatibility is a concern we should presumably add some golden tests to verify this property before starting on the upgrade.
PkgConfigVersionRange is unfortunately now a distinct type from VersionRange, which will be problematic in the IsDependency PkgconfigDependency instance.
I started looking at this too. You can take a look at my branch, but it's still very much a work in progress.
I've spent about a day's worth of work on it so far. I have been having an extremely hard time making the upgrade to Cabal 3. So many things have changed, moved, or been deleted that it's hard to write code that's both backwards and forwards compatible. On top of that, some of the code that is forwards compatible is simply broken, like the Parsec instance for PackageIdentifier.
I'm going to sync up with @hvr on this soon, but it builds already against Cabal 3 (in the wip/cabal-3.0 branch), what's left is upgrading the logic to the changes Cabal 3 brought.
If I remember correctly from my chat with @hvr there was the whole aspect of the behavioural changes in Cabal 3 to apply and verify, with the hackage server's data. I don't recall the details and/or if there were other remaining tasks, sorry.
I think it makes sense to get this thing merged. However, I am unsure about deployment without proper test using current production state. The concern is that due to auto-derived instances serialization might be broken for some types. Hitting such a case would corrupt the state.
It's not the right time for it but I will say it nevertheless: never serialize data without explicit contract. (Learned the hard way at @shlevy's school of hard knocks)
Reacted by Sandy Maguire and Tikhon Jelvis
Reacted by Shea Levy, Ben Gamari, Matt Parsons, Théophile Choutri de Tarlé, Julien Debon, Shae Erisson, Ellie Hermaszewska, Sandy Maguire and Phil de Joux
Is there a recommended way to test hackage server? I built an older version (86e5e02) of Hackage, started it locally with an HTTPS reverse proxy (since cabal-install can only upload through HTTPS regardless of secure), and registered a test user successfully. However I didn't get to upload a package; cabal (cabal-install 3.0.0.0 with a hack to add --insecure) is stuck at
I think it makes sense to get this thing merged. However, I am unsure about deployment without proper test using current production state. The concern is that due to auto-derived instances serialization might be broken for some types. Hitting such a case would corrupt the state.
What's the plan for getting this merged released? Super looking forward to using this.
Reacted by Hécate, recursion-ninja, Hazel Weakly, Ben Gamari, Alexis King, Tom Ellis, Ellie Hermaszewska and Junyoung/"Clare" Jang
I tried today to upload a package candidate to hackage with multiple public libraries that uses the package:library format in some if its dependencies but this candidate was rejected:
Invalid package
plugins-for-blobs-0.1.0/plugins-for-blobs.cabal:939:25:
colon specifier is experimental feature (issue #5660)
I've been waiting for over 2 years to upload an updated version of bv-little to hackage. Long ago I refactored the codebase to utilize the multi-library package feature and am unwilling to revert the changes or maintain two branches with different package build APIs. I would greatly appreciate prioritizing at least a road map and timeline for hackage support for publishing multi-public-library packages.
I believe the new cabal library should remove this warning and allow upload of such packages. Two things need to happen first. First: the new cabal library 3.8 needs an official release. Second, we need to update hackage-server to use the 3.8 library following the official cabal release, and redeploy.
Note that this was all by design, as a series of open issues on cabal meant that multi-lib packages were still experimental and not complete, and correspondingly hackage server enforced the cabal warnings. Some good work by some cabal contributors (thanks @fgaz and @GrayJay !) and a fair amount of sleuthing fixed the largest outstanding issues with multi-libs. The following is the cabal PR in 3.8 which removes the warning: haskell/cabal#8089
Reacted by Mitchell Dalvi Rosen and recursion-ninja
Activity
bgamari commentedon Oct 30, 2019
I started working on this a while ago (see https://github.com/bgamari/hackage-server/tree/cabal-3) but admittedly didn't make it very far. The problem was that I wasn't particularly happy with any of the options for rewriting the
PrettyandParsecinstances forDayandUTCTimeinDistribution.Server.Framework.Instances.@hvr has also said that he wanted someone to verify that the
Binaryinstances remained compatible (although I'll admit I don't know whichBinaryinstances he was referring to; I don't see any such non-trivial instances inhackage-server).bgamari commentedon Oct 30, 2019
Ahh, I see.
hackage-serverusescereal'sSerializeclass, notBinary. This is likely what @hvr was referring to. I compatibility is a concern we should presumably add some golden tests to verify this property before starting on the upgrade.bgamari commentedon Oct 30, 2019
PkgConfigVersionRangeis unfortunately now a distinct type fromVersionRange, which will be problematic in theIsDependency PkgconfigDependencyinstance.phadej commentedon Oct 30, 2019
See hackage-trustees/hackage-cli#13
tfausak commentedon Nov 2, 2019
I started looking at this too. You can take a look at my branch, but it's still very much a work in progress.
I've spent about a day's worth of work on it so far. I have been having an extremely hard time making the upgrade to Cabal 3. So many things have changed, moved, or been deleted that it's hard to write code that's both backwards and forwards compatible. On top of that, some of the code that is forwards compatible is simply broken, like the
Parsecinstance forPackageIdentifier.tfausak commentedon Nov 3, 2019
I see a bunch of commits were recently pushed to master that seem to start addressing this issue: f3c5eb8, 11136d3, 70de659, b58a7df, 8924eca, add48b9, d003d77. Should I stop working on this?
tfausak commentedon Nov 8, 2019
I'm not working on this anymore. As far as I can tell, the wip/cabal-3.0 branch is making good headway.
dwijnand commentedon Nov 10, 2019
Oh. I wasn't aware of this thread or the progress reported here...
I wanted to create such a thread to mark trailing TODOs on the progress being made in wip/cabal-3.0:
PrettyandParsecforTime: 088bfed#diff-0251fd4f91872f46f89c3c26c76750b2R241-R242flagAssignmentfield ofBuildReport'sFieldGrammar: 088bfed#diff-0251fd4f91872f46f89c3c26c76750b2R254bgamari commentedon Nov 14, 2019
What remains to be done here, @dwijnand?
dwijnand commentedon Nov 16, 2019
I'm going to sync up with @hvr on this soon, but it builds already against Cabal 3 (in the wip/cabal-3.0 branch), what's left is upgrading the logic to the changes Cabal 3 brought.
swamp-agr commentedon Feb 6, 2020
Hello @dwijnand,
I kindly ask you, do you have any news regarding this topic?
Do you know, who is planning to work on the issue?
Thanks,
Andrey
dwijnand commentedon Feb 7, 2020
No, sorry, no news. I'm not sure who (if anyone) has taken up this task.
alexbiehl commentedon Feb 13, 2020
@dwijnand can you summarize what's still missing? From the commits on your branch I can see you managed to build hackage with Cabal 3. What's left?
dwijnand commentedon Feb 13, 2020
If I remember correctly from my chat with @hvr there was the whole aspect of the behavioural changes in Cabal 3 to apply and verify, with the hackage server's data. I don't recall the details and/or if there were other remaining tasks, sorry.
alexbiehl commentedon Feb 13, 2020
Thank you for your quick response. I have a call scheduled with Herbert in the hope we can come up with a validation plan.
7 remaining items
alexbiehl commentedon Mar 11, 2020
I think it makes sense to get this thing merged. However, I am unsure about deployment without proper test using current production state. The concern is that due to auto-derived instances serialization might be broken for some types. Hitting such a case would corrupt the state.
It's not the right time for it but I will say it nevertheless: never serialize data without explicit contract. (Learned the hard way at @shlevy's school of hard knocks)
fumieval commentedon Apr 3, 2020
Is there a recommended way to test hackage server? I built an older version (86e5e02) of Hackage, started it locally with an HTTPS reverse proxy (since cabal-install can only upload through HTTPS regardless of
secure), and registered a test user successfully. However I didn't get to upload a package;cabal(cabal-install 3.0.0.0 with a hack to add--insecure) is stuck atIt's hard to tell what's going on because hackage-server prints nothing.
phadej commentedon Apr 3, 2020
@fumieval upload through the web interface (if you are not particularly testing cabal-install upload functionality).
expipiplus1 commentedon Apr 11, 2020
What's the plan for getting this
mergedreleased? Super looking forward to using this.Kleidukos commentedon Apr 25, 2020
@alexbiehl @hvr Hi, I hope you're alright in these difficult times.
I was wondering what were the news on this front. :)
gbaz commentedon May 3, 2020
Ok this is deployed now. Thanks everyone for your help!
mitchellwrosen commentedon Jun 15, 2020
I see hackage still rejects multi-public-library packages because cabal emits a warning. Is that intentional?
expipiplus1 commentedon Jun 15, 2020
@mitchellwrosen perhaps this will be enabled once haskell/cabal#5660 is closed
philderbeast commentedon Jun 11, 2022
I tried today to upload a package candidate to hackage with multiple public libraries that uses the
package:libraryformat in some if its dependencies but this candidate was rejected:A snippet of the cabal file in that region:
andreasabel commentedon Jun 12, 2022
Maybe open a new issue for the multi-libs problem?
philderbeast commentedon Jun 12, 2022
@andreasabel I will open a new issue with the reproduction steps I have.
I removed the
package:libraryformat use and tried uploading again finding visibility is rejected:recursion-ninja commentedon Jun 12, 2022
I've been waiting for over 2 years to upload an updated version of
bv-littleto hackage. Long ago I refactored the codebase to utilize the multi-library package feature and am unwilling to revert the changes or maintain two branches with different package build APIs. I would greatly appreciate prioritizing at least a road map and timeline for hackage support for publishing multi-public-library packages.gbaz commentedon Jun 12, 2022
I believe the new cabal library should remove this warning and allow upload of such packages. Two things need to happen first. First: the new cabal library 3.8 needs an official release. Second, we need to update hackage-server to use the 3.8 library following the official cabal release, and redeploy.
Note that this was all by design, as a series of open issues on cabal meant that multi-lib packages were still experimental and not complete, and correspondingly hackage server enforced the cabal warnings. Some good work by some cabal contributors (thanks @fgaz and @GrayJay !) and a fair amount of sleuthing fixed the largest outstanding issues with multi-libs. The following is the cabal PR in 3.8 which removes the warning: haskell/cabal#8089
recursion-ninja commentedon Jun 12, 2022
@gbaz Delighted to hear the timeline is so imminent!