Commit Graph

143 Commits

Author SHA1 Message Date
James Hobson
3fd9fae66a
Changed to use IO Exceptions 2022-01-12 13:31:10 +01:00
James Hobson
f8548fefb3
Added support for quilt series files when patching 2022-01-12 10:01:48 +01:00
3f0befe30d
Fix ghcup whereis ghc for non-standard versions, fixes #289 2021-11-22 22:53:59 +01:00
a9630d0802
Cooler patching 2021-11-12 19:52:00 +01:00
626a2dd020
More debug logging 2021-11-12 01:01:21 +01:00
2c57def8f1
Fix parsing of atypical ghc versions 2021-11-02 01:22:06 +01:00
190b5dedba
Allow to control the metadata cache, fixes #278 2021-10-30 14:16:45 +02:00
9f8c9c228d
Reduce IS_WINDOWS CPP 2021-10-17 20:57:22 +02:00
c846e52acb
Cleanup during unpack failures as well 2021-10-10 20:48:33 +02:00
c19dd5ee8b
Implement ghcup gc command
Fixes #241
2021-09-25 22:29:02 +02:00
9497e310ca
Improve cli interface with partial versions
Fixes #243
2021-09-25 17:13:11 +02:00
aece305003
Move logger stuff to logger module 2021-09-23 12:53:01 +02:00
f90741f4d3
Implement compiling HLS from source 2021-09-19 22:04:32 +02:00
c431c0ae00
Implement GPG verification wrt #236 2021-09-18 21:51:19 +02:00
d3a36c2c9a
Merge remote-tracking branch 'origin/merge-requests/156' 2021-09-18 15:19:06 +02:00
ae2031174e
Improve warnAboutHlsCompatibility 2021-09-14 12:36:14 +02:00
Arjun Kathuria
7a6a119829 Patch for MonadLogger deletion since new rebase 2021-09-07 14:21:24 +05:30
787c927de6
Improve logging, fixes #228 2021-09-06 23:01:49 +02:00
db8207f8b9
Fixup 2021-09-04 16:06:33 +02:00
d2346a543a
Fixup 2021-09-04 15:53:29 +02:00
9bdf6bde17
Only consider .diff/.patch for patch files wrt #226 2021-09-04 14:25:24 +02:00
bc80b1048f
Fix debug logs 2021-09-03 21:00:39 +02:00
13143b8e4d
Drop monad-logger 2021-08-30 23:36:11 +02:00
a269b60282
Remove extra 2021-08-29 22:37:16 +02:00
430dc2d20b
Remove zip dependency 2021-08-29 20:56:17 +02:00
14fc6b7281
Remove string-interpolate wrt #212 2021-08-25 18:54:58 +02:00
f8cfcd4038
Get rid of tar 2021-08-25 11:48:30 +02:00
d3e3ebd63f
Merge branch 'fix-ghcToolFiles' 2021-07-26 21:25:00 +02:00
3bdc82c99b
Redo file handling wrt #165 and #187 2021-07-22 17:44:03 +02:00
1c2cf98850
Fix file/dir removal on windows, fixes #165 2021-07-21 20:50:58 +02:00
a4a7f73fb7
Allow to use Hadrian as build system, fixes #35 2021-07-20 23:51:31 +02:00
4ed72fb517
Preserve mtimes on unpacked GHC tarballs on windows wrt #187 2021-07-19 23:33:01 +02:00
3caf91c640
Fix ensureGlobalTools 2021-07-19 19:08:43 +02:00
6143cdf2e0
Add --offline switch wrt #186 2021-07-19 13:49:24 +02:00
2c7176d998
Use LabelOptic and add LeanAppState
Wrt #186
2021-07-18 14:39:49 +02:00
42134fd2a5
Fix whereIsTool for cross 2021-07-15 22:38:42 +02:00
928f4a97de
Fix ghcToolFiles for upcoming GHC build system changes
Also see: https://gitlab.haskell.org/ghc/ghc/-/issues/20074#note_363720
2021-07-10 21:43:37 +02:00
b56c44a210
Ensure directories 2021-06-13 13:41:06 +02:00
54e8e3efb0
Gracefully handle stack binary not installed by ghcup 2021-06-12 22:27:31 +02:00
4dcc63606e
Remove legacy handling of cabal binary 2021-06-12 22:26:50 +02:00
2f62067d96
Windows support 2021-06-05 21:01:01 +02:00
734916728c
Add stack support 2021-05-15 14:01:00 +02:00
a905c6322c
Fix spelling 2021-04-29 14:47:22 +02:00
9f0ac0ee19
Allow to compile from git repo 2021-04-28 21:17:57 +02:00
adf44ba141
Validate subdirs too, fixes #52 2021-04-02 16:54:27 +02:00
7383fdd0c0
Make parser more lax, fixes #119
Also make sure we don't print the warning message
20 times, so avoid some repeated IO.
2021-04-01 17:21:00 +02:00
d5b5f1fddd
Chores 2021-03-24 17:56:57 +01:00
8c87c9aeb7
Fix error messages and overhaul pretty printing
Fixes #115
2021-03-02 10:35:31 +01:00
47d9766c78
Make sure forFold can properly inline 2021-02-25 15:40:52 +01:00
Huw campbell
d6fa61e223 Add command line completions for installed and available versions.
When running `ghcup set ghc` and pressing tab, one should be able to
autocomplete the currently installed GHCs we have available.

Add an optparse applicative completer for install, rm, and set commands
which shows tags and versions. For installation, all are shown; while
for remove and set, only those installed are.
2021-02-25 00:42:16 +11:00
a9b0c0fbc9
Allow for dynamic post-install, post-remove and pre-compile msgs 2021-02-23 11:52:38 +01:00
1d3e88bdfe
Fix disappearing HLS symlinks wrt #91
When installing a new GHC version, the corresponding
HLS symlink of that version may be accidentially removed.

Ooops.
2020-11-20 23:05:37 +01:00
241dadbeb5
Update to versions-4.0.1 API 2020-10-25 10:22:35 +01:00
e250d6013f
Redo Settings as AppState 2020-10-24 01:07:31 +02:00
bb7c4205db
Allow to install haskell-language-server wrt #65 2020-09-20 23:09:09 +02:00
a269131e2d
Allow to compile over existing version, fixes #59 2020-09-17 21:21:16 +02:00
326bf510c9
Fix Error when ~/.ghcup is a valid symlink
Fixes #49
2020-08-31 13:03:12 +02:00
5c45884f5f
Allow to specify regex for subdir 2020-08-10 22:27:50 +02:00
cafedd73a2
Use Settings to avoid querying dirs every time 2020-08-10 21:52:30 +02:00
7163b77837
Only query directories once 2020-08-10 21:51:31 +02:00
122c54b51e
Refactor 2020-08-10 21:51:31 +02:00
b9d7d7d007
Fix licences in module haddock 2020-08-10 21:51:29 +02:00
aac8f760ad
Add xdg support wrt #39 2020-08-10 21:51:19 +02:00
86b0e4b31b
Fix cabalSet for pre-release versions 2020-08-10 21:51:19 +02:00
af811f3dbc
nub result in getInstalledCabals 2020-08-10 21:51:19 +02:00
826900cc41
Improve documentation 2020-07-22 01:08:58 +02:00
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
1a64527e14
Improve verbosity 2020-07-13 16:27:01 +02:00
50424c2801
Allow to build with tar-bytestring on e.g. 32bit 2020-07-13 15:41:31 +02:00
bed2cca8d2
Use libarchive instead of tar-bytestring 2020-07-05 23:03:24 +02:00
7ec6e8604c
Slight style changes 2020-06-20 14:37:38 +02:00
Brian McKenna
febe6fcb35 Fix behaviour of non-Hadrian builds
getFileStatus will resolve symbolic links. getSymbolicLinkStatus doesn't.
2020-06-20 03:38:41 +00:00
Brian McKenna
d276bfb3ec Extract Hadrian logic to isHadrian function with comment 2020-06-19 23:06:46 +00:00
Brian McKenna
a186b07763 Support Hadrian provided bindists
Fixes #31
2020-06-18 14:03:51 +00:00
6c95218daf
Support multiple installed versions of cabal
Fixes #23
2020-05-13 21:33:45 +02:00
f46700e1cc
First cross try 2020-04-29 20:19:01 +02:00
0ff7ebb1fd
Allow to set downloader 2020-04-29 19:12:58 +02:00
bcaccaaf31
Implement --keep 2020-04-22 19:32:14 +02:00
13acce07d4
Allow to install X.Y versions 2020-04-22 16:13:58 +02:00
6c12eb16eb
Add base tag 2020-04-22 11:59:40 +02:00
e637f90fae
List stray tools 2020-04-21 23:37:48 +02:00
e3c20d53a8
Add changelog command
This should be backwardscompatible with 0.0.1 json format.

Also slightly change 'getTagged' to list the latest version
with a tag, not the oldest.
2020-04-18 15:06:22 +02:00
9d9e415a09
Remove use of unsafe decodeUtf8 2020-04-17 09:30:45 +02:00
1455c2c175
Add darwin notarisation 2020-04-10 19:27:17 +02:00
3496f24f6e
Silence compiler warnings 2020-04-09 20:08:25 +02:00
6a79782650
Allow to apply patches for compiling from source 2020-04-08 22:57:57 +02:00
3e52def226
Update downloads and version 2020-04-05 11:02:13 +02:00
31a8316bfa Implement proper build log scrolling 2020-03-24 21:05:10 +01:00
0963081fd8 Use OverloadedStrings instead of TH 2020-03-21 22:19:37 +01:00
c0c70f5c9b Abstract over make
So on FreeBSD we get gmake.
2020-03-17 22:43:45 +01:00
8a1bd45ffe Remove URLSource from Settings 2020-03-17 18:39:01 +01:00
951a7173ae Remove unnecessary type annotations 2020-03-16 10:47:09 +01:00
a93aaf9a5f Initial commit 2020-03-09 00:44:11 +01:00