Commit Graph

10 Commits

Author SHA1 Message Date
Andrea Bedini
2631bf6067 Implement metadata output.
Implement a new flag "--write-metadata" which will create, in the output
directory, a file "foliage/packages.json" with metadata about the
package provenance.

The file package.json file looks like this

```
{
  "Win32-network-0.1.0.0": {
    "source": {
      "url": "github:input-output-hk/Win32-network/3825d3abf75f83f406c1f7161883c438dac7277d"
    },
    "timestamp": "2022-10-17T00:00:00Z"
  },
  "Win32-network-0.1.1.0": {
    ...
```

The idea is that tools fetching the repo can also fetch this file to
obtain information about the package provenance.
2023-02-14 10:29:16 +08:00
Michael Peyton Jones
33a645bc3b
Build in parallel
This cuts the time to build `cardano-haskell-packages` down to 30s from
>2mins.
2022-12-16 15:15:42 +00:00
Andrea Bedini
03a8fe471d Add option to not sign the index 2022-09-19 15:33:50 +02:00
Andrea Bedini
ed579a6b20
Give user explicit control over signatures expiry 2022-06-08 10:39:46 +08:00
Andrea Bedini
6d346c5212
Rename ImportHackage to ImportIndex 2022-05-19 15:03:42 +08:00
Andrea Bedini
4f1ad7bbc4
[import-hackage] support filtering by package version 2022-03-30 11:17:22 +08:00
Andrea Bedini
f67ee84975
Input folder can be customised 2022-03-29 17:10:19 +08:00
Andrea Bedini
080197e9e2
Big rewrite
1. Foliage takes as input a complete description of the index, where
   source distributions and revisions come with a timestamp. This allows
   us to recreate the entire index in a reproducible way.

2. Added a experimental command to import an index from a Hackage (as
   downloaded with Cabal). This was originally a testing/development
   need but there might be different use cases.
2022-03-28 17:18:27 +08:00
Andrea Bedini
5ce3fc0501
Remove accepting keys from the environment 2022-03-16 16:49:26 +08:00
Andrea Bedini
56cb0535ab
Embed hackage-repo-tool 2022-03-11 16:19:35 +08:00