Commit Graph

56 Commits

Author SHA1 Message Date
Julian Ospald c431c0ae00
Implement GPG verification wrt #236 2021-09-18 21:51:19 +02:00
Julian Ospald 787c927de6
Improve logging, fixes #228 2021-09-06 23:01:49 +02:00
Julian Ospald d98e54a743
Drop yaml/libyaml 2021-08-30 23:36:11 +02:00
Julian Ospald 13143b8e4d
Drop monad-logger 2021-08-30 23:36:11 +02:00
Julian Ospald a269b60282
Remove extra 2021-08-29 22:37:16 +02:00
Julian Ospald 14fc6b7281
Remove string-interpolate wrt #212 2021-08-25 18:54:58 +02:00
Julian Ospald 8247c0b00b
Add more doctests 2021-08-24 10:51:39 +02:00
Julian Ospald 951e676bee
Fix header reading wrt #213 2021-08-23 23:16:32 +02:00
Julian Ospald 0a0fbd0cb6
Merge branch 'fix-metadata-download' 2021-08-07 19:26:26 +02:00
Julian Ospald 6dfc04a9f6
Fix metadata file read in --offline mode 2021-08-07 18:31:41 +02:00
Julian Ospald 72133d0002
Rather skip copying to cache dir if scheme is file:// 2021-08-07 10:24:08 +02:00
Julian Ospald 6e07e9e56b
Skip copying metadata if source and destination match 2021-08-07 09:55:45 +02:00
Julian Ospald e903aeb555
Skip cached metadata when url starts with file:// 2021-08-07 09:54:26 +02:00
Julian Ospald 2792f6f4b6
Fix error handling when we can't find a filename 2021-08-06 19:45:59 +02:00
Julian Ospald fdf45e0fe6
Do etags hashing wrt #193 2021-07-25 23:15:59 +02:00
Julian Ospald 3bdc82c99b
Redo file handling wrt #165 and #187 2021-07-22 17:44:03 +02:00
Julian Ospald 1c2cf98850
Fix file/dir removal on windows, fixes #165 2021-07-21 20:50:58 +02:00
Julian Ospald eaad2caf25
Add prefetch command 2021-07-19 16:51:40 +02:00
Julian Ospald 6143cdf2e0
Add --offline switch wrt #186 2021-07-19 13:49:24 +02:00
Julian Ospald b56c44a210
Ensure directories 2021-06-13 13:41:06 +02:00
Julian Ospald 2f62067d96
Windows support 2021-06-05 21:01:01 +02:00
Julian Ospald 7d13836fea
Warn when /tmp doesn't have 2500 or more of disk space 2021-04-25 17:25:40 +02:00
Julian Ospald d5b5f1fddd
Chores 2021-03-24 17:56:57 +01:00
Huw campbell 1a5f0259f4 Just use the cache for commands which refer to locally stored objects.
Setting a version of GHC will fail if provided with a version not installed,
and we don't neede to check the most recent list of GHCs available to know
that.
2021-02-25 10:19:16 +11:00
Julian Ospald 82aa6c70ea
Allow to encode version ranges for distro versions
Fixes #84
2020-11-21 01:12:15 +01:00
Julian Ospald 53f5a08924
Allow configuring URLSource as well 2020-10-25 14:47:26 +01:00
Julian Ospald e250d6013f
Redo Settings as AppState 2020-10-24 01:07:31 +02:00
Julian Ospald 326bf510c9
Fix Error when ~/.ghcup is a valid symlink
Fixes #49
2020-08-31 13:03:12 +02:00
Julian Ospald cafedd73a2
Use Settings to avoid querying dirs every time 2020-08-10 21:52:30 +02:00
Julian Ospald b9d7d7d007
Fix licences in module haddock 2020-08-10 21:51:29 +02:00
Julian Ospald aac8f760ad
Add xdg support wrt #39 2020-08-10 21:51:19 +02:00
Julian Ospald 391676e90a
Use yaml instead of pesky json 2020-08-09 21:56:11 +02:00
Julian Ospald 826900cc41
Improve documentation 2020-07-22 01:08:58 +02:00
Julian Ospald 22a5ad739e
Don't try non-musl bindists for Alpine Linux 2020-07-20 20:47:45 +02:00
Julian Ospald 0f69c73e0e
Rework printing/tee
This should be faster to draw, use less syscalls
and generally use EOF and pipes correctly.
2020-07-16 00:10:27 +02:00
Julian Ospald a1282b2854
Fix missing import 2020-04-29 19:36:16 +02:00
Julian Ospald 0ff7ebb1fd
Allow to set downloader 2020-04-29 19:12:58 +02:00
Julian Ospald 56e4a6b15f
Invert curl flag to internal-downloader 2020-04-29 09:56:26 +02:00
Julian Ospald 56c439d716
Fall back to cached ghcup-<..>.json 2020-04-27 23:23:34 +02:00
Julian Ospald 9d9e415a09
Remove use of unsafe decodeUtf8 2020-04-17 09:30:45 +02:00
Julian Ospald 1455c2c175
Add darwin notarisation 2020-04-10 19:27:17 +02:00
Julian Ospald c106dd3f65
Show curl progress bar 2020-04-10 19:08:02 +02:00
Julian Ospald c706a047ea
Add tool-requirements subcommand 2020-04-10 18:45:33 +02:00
Julian Ospald 3496f24f6e
Silence compiler warnings 2020-04-09 20:08:25 +02:00
Julian Ospald c782bc44de
Avoid unnecessary OpenSSL deps 2020-04-09 18:27:07 +02:00
Julian Ospald f78e7b1cbc
Small refactor and build fixes 2020-04-09 18:26:02 +02:00
Julian Ospald adec7b2398
Allow to build with curl (cli) instead of http-io-streams
This allows to avoid linking against OpenSSL on mac.
2020-04-09 17:01:03 +02:00
Julian Ospald 3e52def226
Update downloads and version 2020-04-05 11:02:13 +02:00
Julian Ospald 0963081fd8 Use OverloadedStrings instead of TH 2020-03-21 22:19:37 +01:00
Julian Ospald c7a831a280 Improve error handling in download
When download fails, delete the partial file, so it
doesn't corrupt the cache.
2020-03-17 23:21:38 +01:00