Require a revision 0 cabal file when force-version is used#118
Conversation
This brings in input-output-hk/foliage#118 which uses a revision-0 cabal file instead of reformatting the upstream one when the version is forced This avoids changing already-released cabal files when Cabal's pretty-printing changes
7e97cf2 to
c2ac715
Compare
This brings in input-output-hk/foliage#118 which uses a revision-0 cabal file instead of reformatting the upstream one when the version is forced This avoids changing already-released cabal files when Cabal's pretty-printing changes
|
This works in tandem with IntersectMBO/cardano-haskell-packages#1256 which modifies the Although the script uses a text-substitution approach, rather than the AST-based rewriting that was previously done by The only change to foliage here is to require a |
This brings in input-output-hk/foliage#118 which uses a revision-0 cabal file instead of reformatting the upstream one when the version is forced This avoids changing already-released cabal files when Cabal's pretty-printing changes
|
This is good. I wonder if we simplify the process.
What is annoying is that we have the package name and package version in the path already. As it stands foliage simply checks that the two sources of package version (the path and the metadata) matches but TBH I find this unsatisfactory. Nevertheless, this change does not improve or regress w.r.t to this duplication, so that is not a problem. |
andreabedini
left a comment
There was a problem hiding this comment.
This looks good as it stands.
|
Alright let's do this then. |
This brings in input-output-hk/foliage#118 which uses a revision-0 cabal file instead of reformatting the upstream one when the version is forced This avoids changing already-released cabal files when Cabal's pretty-printing changes
This brings in input-output-hk/foliage#118 which uses a revision-0 cabal file instead of reformatting the upstream one when the version is forced This avoids changing already-released cabal files when Cabal's pretty-printing changes
This brings in input-output-hk/foliage#118 which uses a revision-0 cabal file instead of reformatting the upstream one when the version is forced This avoids changing already-released cabal files when Cabal's pretty-printing changes
|
Thanks for the review, Andrea.
I agree that this would be a good improvement. Then, I'll create a PR for this. |
Instead of rewriting the cabal file, we use an archived version that's stored as revision
0. This avoids changing existing cabal files when Cabal's pretty-printing changes.