Skip to content

Conversation

@neilmayhew
Copy link

@neilmayhew neilmayhew commented Dec 29, 2025

This fixes two bugs:

  • The latest revision isn't shown on the all-packages page (it says No Revision regardless)
  • The revised .cabal files are numbered in the wrong order (reverse-chronological instead of forward)

The 'current' .cabal file is correct, which is probably why we haven't noticed this before. However, the incorrect numbering of the individual revisions may have been causing problems with Hydra builds for quite some time: several people have reported that revisions aren't being handled correctly and have assumed that it was the fault of Hydra or Haskell.nix.

Edit: This does seem to fix the CHaP build problems on Hydra. It won't be possible to check this on Hydra itself until after this change is merged and the repo branch is updated. However, testing it with a locally-built _repo and --override-input CHaP enabled a previously-failing nix build to succeed.

This PR also improves the display of revisions on the package-version page: it shows the revision number as provided in the meta.toml file, even though in some cases (eg plutus-core-1.37.0.0) the numbers aren't sequential.

@neilmayhew
Copy link
Author

This is based on the commits from #108, so will need to be rebased after that's merged.

This was referenced Dec 30, 2025
neilmayhew added a commit to IntersectMBO/cardano-haskell-packages that referenced this pull request Dec 30, 2025
This brings in the input-output-hk/foliage#109 bug fix and several other
improvements
@neilmayhew
Copy link
Author

neilmayhew commented Dec 30, 2025

These changes mess with the idea of an "immutable", append-only repo because historical revision files will change. However, this has been happening already, because the bug actually causes revision files to be renumbered every time a package is given a new revision. The latest is always numbered 1 and they go in reverse-chronological order from there, so of course the numbering changes every time there's a new revision.

@neilmayhew
Copy link
Author

I also noticed (as I was diffing the output before and after my changes) that plutus-core-1.37.0.0 has revisions 1 and 3 but no 2 in the meta.toml. However, due to the bug, these are currently being numbered 2 and 1 in the generated repo. With the change, they will be 1 and 3 as expected.

github-actions bot and others added 10 commits January 4, 2026 00:42
Flake lock file updates:

• Updated input 'flake-utils':
    'github:numtide/flake-utils/c1dfcf0' (2024-09-17)
  → 'github:numtide/flake-utils/11707dc' (2024-11-13)
• Updated input 'haskell-nix':
    'github:input-output-hk/haskell.nix/a2f75fc' (2024-10-19)
  → 'github:input-output-hk/haskell.nix/cad2645' (2026-01-03)
• Removed input 'haskell-nix/ghc-8.6.5-iohk'
• Updated input 'haskell-nix/hackage':
    'github:input-output-hk/hackage.nix/4988994' (2024-10-19)
  → 'github:input-output-hk/hackage.nix/05797dd' (2026-01-03)
• Added input 'haskell-nix/hackage-for-stackage':
    'github:input-output-hk/hackage.nix/fba3874' (2026-01-03)
• Added input 'haskell-nix/hackage-internal':
    'github:input-output-hk/hackage.nix/f7867ba' (2025-06-19)
• Added input 'haskell-nix/hls':
    'github:haskell/haskell-language-server/682d689' (2025-03-10)
• Added input 'haskell-nix/hls-2.10':
    'github:haskell/haskell-language-server/2318c61' (2025-03-27)
• Added input 'haskell-nix/hls-2.11':
    'github:haskell/haskell-language-server/46ef452' (2025-05-15)
• Updated input 'haskell-nix/hls-2.9':
    'github:haskell/haskell-language-server/0c1817c' (2024-07-03)
  → 'github:haskell/haskell-language-server/90319a7' (2024-07-03)
• Removed input 'haskell-nix/hydra'
• Removed input 'haskell-nix/hydra/nix'
• Removed input 'haskell-nix/hydra/nix/lowdown-src'
• Removed input 'haskell-nix/hydra/nix/nixpkgs'
• Removed input 'haskell-nix/hydra/nix/nixpkgs-regression'
• Removed input 'haskell-nix/hydra/nixpkgs'
• Updated input 'haskell-nix/iserv-proxy':
    'github:stable-haskell/iserv-proxy/2ed3400' (2024-06-04)
  → 'github:stable-haskell/iserv-proxy/1506051' (2025-08-15)
• Removed input 'haskell-nix/nixpkgs-2003'
• Removed input 'haskell-nix/nixpkgs-2105'
• Removed input 'haskell-nix/nixpkgs-2111'
• Removed input 'haskell-nix/nixpkgs-2205'
• Removed input 'haskell-nix/nixpkgs-2211'
• Updated input 'haskell-nix/nixpkgs-2405':
    'github:NixOS/nixpkgs/086b448' (2024-09-16)
  → 'github:NixOS/nixpkgs/1e7a8f3' (2024-12-30)
• Added input 'haskell-nix/nixpkgs-2411':
    'github:NixOS/nixpkgs/5ab036a' (2025-06-30)
• Added input 'haskell-nix/nixpkgs-2505':
    'github:NixOS/nixpkgs/6c8f0cc' (2025-12-01)
• Added input 'haskell-nix/nixpkgs-2511':
    'github:NixOS/nixpkgs/b0924ea' (2025-12-01)
• Updated input 'haskell-nix/nixpkgs-unstable':
    'github:NixOS/nixpkgs/658e722' (2024-09-17)
  → 'github:NixOS/nixpkgs/c1cb7d0' (2025-12-01)
• Updated input 'haskell-nix/stackage':
    'github:input-output-hk/stackage.nix/df1d8f0' (2024-10-16)
  → 'github:input-output-hk/stackage.nix/8a7333a' (2026-01-03)
@neilmayhew
Copy link
Author

Rebased on update-ghc-and-dependencies after that itself was rebased

neilmayhew added a commit to IntersectMBO/cardano-haskell-packages that referenced this pull request Jan 6, 2026
This brings in the input-output-hk/foliage#109 bug fix and several other
improvements
neilmayhew added a commit to IntersectMBO/cardano-haskell-packages that referenced this pull request Jan 8, 2026
This brings in the input-output-hk/foliage#109 bug fix and several other
improvements
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant