input-output-hk / foliage

🌿 Foliage is a tool to create custom Haskell package repositories, in a fully reproducible way.
MIT License
42 stars 9 forks source link

Fix webpage revisions #100

Closed andreabedini closed 4 months ago

andreabedini commented 5 months ago

This fixes a bug in the website generation that causes revisions to be duplicated.

E.g.

λ curl --silent https://chap.intersectmbo.org/package/typed-protocols-0.1.1.0/revision/1.cabal | sha256sum
3c1f4b32b2a61df886f146d6fc819d4ccac16d435dce41db420e055061e614e6  -
λ curl --silent https://chap.intersectmbo.org/package/typed-protocols-0.1.1.0/revision/2.cabal | sha256sum
3c1f4b32b2a61df886f146d6fc819d4ccac16d435dce41db420e055061e614e6  -
λ curl --silent https://chap.intersectmbo.org/package/typed-protocols-0.1.1.0/revision/3.cabal | sha256sum
3c1f4b32b2a61df886f146d6fc819d4ccac16d435dce41db420e055061e614e6  -

while

λ sha256sum _sources/typed-protocols/0.1.1.0/revisions/*
3afb8cf577e858150eb2fdc89638c4a88987c1fd0d6332db77b1c69928fd207d  _sources/typed-protocols/0.1.1.0/revisions/1.cabal
8776c5b773e667290edc2b367bfdd6630c559181c37dd43ed3fd33e8ea9fbaa3  _sources/typed-protocols/0.1.1.0/revisions/2.cabal
3c1f4b32b2a61df886f146d6fc819d4ccac16d435dce41db420e055061e614e6  _sources/typed-protocols/0.1.1.0/revisions/3.cabal

Revision number 3 (the latest) was used in place of 1 and 2.