Commit Graph

58 Commits

Author SHA1 Message Date
Andrea Bedini
4ff84f10db
Remove leftover file 2022-05-19 15:03:43 +08: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
d4a9adab79
Don't run nix flake check 2022-05-16 19:22:13 +08:00
Andrea Bedini
a294e93c97
Use IOG cache 2022-05-16 18:01:44 +08:00
Andrea Bedini
8f3c76a262
Improve flake.nix 2022-05-16 17:54:15 +08:00
Andrea Bedini
4af477a937
Update README.md 2022-05-16 17:35:13 +08:00
Andrea Bedini
88e7bba9d5
Make revisions timestamps mandatory
Also introduce sanity checks for the following cases

- Package timestamp is later than any revision timestamp
- Package has no timestamp but has revisions

The above cases do not make any sense and are considered invalid.
2022-05-16 17:23:18 +08:00
Andrea Bedini
934e4e8261
Tweaks 2022-05-16 16:55:43 +08:00
Andrea Bedini
8a2e571404
Use a custom rule for remote assets 2022-05-16 14:48:02 +08:00
Andrea Bedini
2d0dbbca5b
Update flake.lock 2022-05-16 11:06:16 +08:00
Andrea Bedini
e19c4fc871
Bump base bound 2022-05-02 10:57:12 +08:00
Andrea Bedini
a0bdb8dc9e
[nix] strip foliage executable 2022-04-21 17:51:38 +08:00
Andrea Bedini
50bdae7254
Update cachix/install-nix-action 2022-04-21 16:31:31 +08:00
Andrea Bedini
ef3361c774
nix-based CI 2022-04-21 16:03:02 +08:00
Andrea Bedini
ab2ef08536
Flake tweaks 2022-04-21 15:39:52 +08:00
Andrea Bedini
5be1311662
Bail if no package metadata is found.
Closes #5.
2022-04-13 15:47:38 +08:00
Andrea Bedini
9b9e880850
Add license, tidy up 2022-04-11 17:25:56 +08:00
Andrea Bedini
1490db2604
Add flake.nix 🙀 2022-04-11 16:48:04 +08:00
Andrea Bedini
76c6e9b0dc
Document force-version 2022-04-01 13:02:12 +08:00
Andrea Bedini
1851bf4756
force-version has to win over patches 2022-04-01 13:01:45 +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
4e333ef49f
Implement force version
Doesn't quite work because srcDir is unique by url, so if you have the
same url with different versions, things will collide. This is a bug
that might affect patching too.
2022-03-31 15:02:00 +08:00
Andrea Bedini
7942fa181e
Tidy up old notes 2022-03-31 15:01:17 +08:00
Andrea Bedini
fbcfab34e2
Clarify difference between patches and revisions 2022-03-30 16:46:05 +08:00
Andrea Bedini
ee36387424
Remove misleading paragraph 2022-03-30 15:39:29 +08:00
Andrea Bedini
3a0e89b41e
[build] fix patches
I was applying patches only when making the source distribution but
patches might modify the cabal file which goes into the index (yes one
should use revisions for that).

I am now applying patches right after I have the package source.
2022-03-30 15:05:08 +08:00
Andrea Bedini
9017837e4c
README tweaks 2022-03-30 13:00:02 +08:00
Andrea Bedini
ea498db3a3
[build] patches folder doesn't have to exist 2022-03-30 12:56:17 +08:00
Andrea Bedini
0df2f1044d
Updated README 2022-03-30 12:56:01 +08:00
Andrea Bedini
9fbdb23a5a
Fix bug in keys handling 2022-03-30 12:32:49 +08:00
Andrea Bedini
173ca46692
[build] support patching 2022-03-30 11:21:58 +08:00
Andrea Bedini
4f1ad7bbc4
[import-hackage] support filtering by package version 2022-03-30 11:17:22 +08:00
Andrea Bedini
0de36f2782
Fix toml formatting 2022-03-30 10:21:25 +08:00
Andrea Bedini
f67ee84975
Input folder can be customised 2022-03-29 17:10:19 +08:00
Andrea Bedini
bf855dfbf1
Make timestamp optional 2022-03-29 16:38:10 +08:00
Andrea Bedini
d0e739db8f
Add use case to README.md 2022-03-29 15:35:29 +08:00
Andrea Bedini
780b7c6cb1
Delete NOTES-HRT 2022-03-29 12:36:40 +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
8d09cfffcf
Fix keys handling 2022-03-11 17:41:07 +08:00
Andrea Bedini
2af2c24b1f
Fix invocation of RepoTool.bootstrapOrUpdate 2022-03-11 17:04:13 +08:00
Andrea Bedini
03c7683c13
A bit more verbose 2022-03-11 17:03:52 +08:00
Andrea Bedini
56cb0535ab
Embed hackage-repo-tool 2022-03-11 16:19:35 +08:00
Andrea Bedini
6b73537f79
Fix acquiring keys from the environment 2022-03-11 14:35:09 +08:00
Andrea Bedini
0622adc1f4
Strip release artifacts 2022-03-11 14:15:49 +08:00
Andrea Bedini
d2f2b3187b
Drop custom action
It's too much work.
2022-03-11 14:14:18 +08:00
Andrea Bedini
c732521394
Clean up 2022-03-11 13:57:33 +08:00