Commit Graph

33 Commits

Author SHA1 Message Date
Andrea Bedini
cbd0c5da8f
Minimal test suite (#81)
* Minimal test suite

- Add support for urls with file: schema; both absolute (file:/path) and
  relative (file:path) paths are supported.

- Log curl invocation in case of failure

- Rename fetchRemoteAsset to fetchURL

- Add verbosity flag

- Bump GHC to 9.4.7

- Bump flake inputs

* Apply suggestions from code review

Co-authored-by: Michael Peyton Jones <me@michaelpj.com>

* Add short option '-v' for '--verbosity'

* Whitespace

* Add comment explaining why the dot

* Rename withFixture to inTemporaryDirectoryWithFixture

* Small refactor of PrepareSource

* Rename TarballSource to URISource

- Move sourceUrl to Foliage.Meta.packageVersionSourceToUri

* Simplify inTemporaryDirectoryWithFixture

* Document tar and cp flags

* Reformat

---------

Co-authored-by: Michael Peyton Jones <me@michaelpj.com>
2023-09-15 12:18:30 +08:00
Andrea Bedini
56f8b81838 Display conditionals correctly 2023-05-29 15:27:22 +08:00
Andrea Bedini
dd3934c99d Backtrack on previous change an use cabal-install for sdists 2023-05-24 11:35:34 +08:00
Andrea Bedini
42a2e7f52f Merge remote-tracking branch 'origin/main' into tidy-up 2023-05-23 14:37:11 +08:00
Andrea Bedini
a32da0b49c Tidy-up
- Bump Cabal-syntax to 3.10
- Drop Distribution.PackageDescription.FieldGrammar.Copy
- Drop cabal-install dependency
- Tidy up bounds
2023-05-23 14:31:46 +08:00
Yvan Sraka
59e0d72cb9
Fix #13: create keys should show the public keys 2023-05-05 15:43:42 +02:00
Andrea Bedini
9a4d097cde Rework internals and add consistency check
The function preparePackageVersion is now responsible for doing
everything we need to do to be able to include the package in the index.

The function also returns a denormalised view of the package information
which can be taken as a proof that everything is consistent.
2023-03-03 08:15:19 +08:00
Andrea Bedini
9995734db5 Write json metedata to output dir 2023-02-13 16:54:39 +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
c0714b1b3d Finish off pages
- Summary page has the list of all packages available (with details of the latest version)
- Timeline page has the list of all entries as they appear in the index

Also:
- Rebuild sdists is they are missing
2022-10-26 14:12:40 +08:00
Andrea Bedini
d65f05b45b Put extra-source-files in the right spot 2022-10-24 15:38:46 +08:00
Andrea Bedini
9f22d7295d First go at generating html pages 2022-10-21 11:37:20 +08:00
Andrea Bedini
572e37cb8e WIP 2022-10-21 11:36:47 +08:00
Andrea Bedini
9cc19c70ea Move json stuff to its own module 2022-10-14 09:28:31 +08:00
Andrea Bedini
b13ecafb31 Merge remote-tracking branch 'new' 2022-10-05 15:13:15 +08:00
Andrea Bedini
9151ec36b2 Implement GitHub backend 2022-09-29 15:49:42 +02:00
Andrea Bedini
20b55ba655 Switch to forward mode 2022-09-23 16:38:30 +02:00
Andrea Bedini
5c24681da8 Make sdist with cabal-install internals 2022-09-22 12:12:16 +02:00
Andrea Bedini
203e9a0fb3 Fix rewritePackageVersion 2022-08-31 13:17:05 +02:00
Andrea Bedini
bbeaaf16fe Use with-utf8 2022-08-23 14:11:15 +02:00
Andrea Bedini
b46d214034 Update bounds 2022-08-19 11:53:02 +02:00
Andrea Bedini
6d346c5212
Rename ImportHackage to ImportIndex 2022-05-19 15:03:42 +08:00
Andrea Bedini
da34087e9a
Don't reinvent Cabal types 2022-05-19 14:51:27 +08:00
Andrea Bedini
f9fc67df4d
Start work to support preferred versions 2022-05-19 14:42:41 +08:00
Andrea Bedini
ec63788bdb
Use Cabal to rewrite package versions 2022-05-18 12:12:20 +08:00
Andrea Bedini
8a2e571404
Use a custom rule for remote assets 2022-05-16 14:48:02 +08:00
Andrea Bedini
e19c4fc871
Bump base bound 2022-05-02 10:57:12 +08:00
Andrea Bedini
9b9e880850
Add license, tidy up 2022-04-11 17:25:56 +08:00
Andrea Bedini
d7f78543d4
Fix force-version implementation.
Now the tarballs are downloaded only once but now each package name and
version is unpacked independently in its own directory. Then patches are
applied there.
2022-04-01 12:52:14 +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
56cb0535ab
Embed hackage-repo-tool 2022-03-11 16:19:35 +08:00
Andrea Bedini
6812d0e836
Tweaks 2022-03-09 21:55:26 +08:00
Andrea Bedini
02259533dd
Initial commit 2022-03-09 21:29:23 +08:00