Commit Graph

260 Commits

Author SHA1 Message Date
Julian Ospald 5eaae9916d
Allow to remove all unset versions, fixes #1019 2024-03-11 17:42:26 +08:00
Julian Ospald aef10a699e
Add viPreInstall wrt #1016 2024-03-02 17:44:40 +08:00
Julian Ospald e5a7a2da70
Fix prefetch for cross bindists 2023-11-12 18:21:49 +08:00
Julian Ospald d551cc8077
Better logging for cross removal 2023-07-17 23:15:43 +08:00
Julian Ospald a43fa7d63e
More cross fixes to install bindist 2023-07-07 16:41:58 +08:00
Julian Ospald 009f9211a9
Integrate with errors.haskell.org
Fixes #434
2023-01-03 23:43:46 +08:00
Julian Ospald 9d4c923649
Add content-length property to downloads
This is optional for now. Fixes #367
2023-01-02 20:41:42 +08:00
Julian Ospald 77419ea41d
Fix nuke bug on windows 2022-11-20 23:29:56 +08:00
Julian Ospald 35bda8d67a
Fix hlint warnings 2022-07-11 19:49:08 +02:00
Julian Ospald 9fb2889696
Allow to build from arbitrary GHC source dists 2022-07-09 23:12:00 +02:00
Julian Ospald 9375255452
Warn on all tools when shadowed 2022-05-23 16:50:23 +02:00
Julian Ospald 2845425099
Restructure modules 2022-05-22 21:11:40 +02:00
Julian Ospald c56b9ec3ce
Make windows mergeFileTree more robust 2022-05-21 20:51:13 +02:00
Julian Ospald 68c81577a4
Fix HLS install via compile 2022-05-21 15:03:20 +02:00
Julian Ospald 5741e069ad
Fix deletion on missing files 2022-05-20 23:29:31 +02:00
Julian Ospald df89ddcdf5
Use internal tmpdir 2022-05-20 23:19:33 +02:00
Julian Ospald c9e1261af2
Some fixes 2022-05-20 00:46:50 +02:00
Julian Ospald d5efc86d85
Preserve mtime when merging filetrees 2022-05-20 00:32:22 +02:00
Julian Ospald 430b655785
Improve error handling for mergeFileTree 2022-05-20 00:15:25 +02:00
Julian Ospald b9aba98cd5
Fix recursive deletion in `ghcup nuke` 2022-05-16 17:38:05 +02:00
Julian Ospald 55fdc41137
WIP 2022-05-16 11:29:55 +02:00
Julian Ospald c9790e5823
Use strongly types `GHCupPath` and restrict destructive operations 2022-05-13 21:35:34 +02:00
Julian Ospald db4e411dfd
Fix darwin binaries after copying 2022-05-13 17:58:15 +02:00
Julian Ospald 48aee1e76c
[WIP] Prototype of recording installed files
This also installs makefile based build system via DESTDIR
into a temporary directory and then merges it into the filesystem.
2022-05-13 00:46:47 +02:00
Julian Ospald f7811961b5
Merge branch 'isolateDir' 2022-05-11 20:35:38 +02:00
Julian Ospald 5130cb013b
Fix HLS not cleaning up after failed install, fix #361 2022-05-11 16:18:35 +02:00
Julian Ospald 991e540c11
Refactor code around isolateDirs, so we have proper knowledge 2022-05-11 16:18:35 +02:00
Julian Ospald b036c9861f
Re-enable upgrade functionality for all configurations
Adds a --fail-if-shadowed switch.
2022-05-04 14:15:17 +02:00
Julian Ospald 99c8501d47
Silence hlint 2022-04-29 16:47:11 +02:00
Julian Ospald 8c205fd18c
Add `--no-set` to install commands, fixes #330
This also slightly changes the default for
'ghcup install cabal/stack/hls'... instead of
only setting the installed version if it's the latest,
we always set it. So the default is `--set`.

For GHC, the default is `--no-set`.
2022-03-13 22:48:45 +01:00
Julian Ospald 9faf17634b
Fix hlint and windows build 2022-02-10 21:49:19 +01:00
Julian Ospald c72841ca58
Implement 'ghcup run' 2022-02-09 18:57:59 +01:00
Julian Ospald b4e58478c3
Fix error handling for HLS make 2022-02-06 22:24:52 +01:00
Julian Ospald 684953464b
Silence hlint 2022-02-05 19:39:00 +01:00
Julian Ospald 6b978b42bc
Improve rmHLSNoGHC 2022-02-05 19:12:13 +01:00
Julian Ospald 6831337289
Refactoring and fixes 2022-02-05 19:11:56 +01:00
Julian Ospald 51690d1df3
Support HLS dynamic builds 2022-02-05 16:33:05 +01:00
Julian Ospald a9630d0802
Cooler patching 2021-11-12 19:52:00 +01:00
Julian Ospald c5c6c431b5
Allow remote URIs for --cabal-project-local wrt #281 2021-11-12 19:05:13 +01:00
Julian Ospald 274978a8a7
Allow to pass cabal args to 'compile hls'
This breaks the existing cli interface, but whatever.
2021-11-12 01:13:57 +01:00
Julian Ospald 8eea9bd6a5
Prefer forM_ when possible 2021-11-12 01:04:27 +01:00
Julian Ospald 626a2dd020
More debug logging 2021-11-12 01:01:21 +01:00
Julian Ospald d038c361c0
Revert "Fix HLS rebuilds"
This reverts commit 8e8198546f.
2021-11-11 21:40:02 +01:00
Julian Ospald 2c57def8f1
Fix parsing of atypical ghc versions 2021-11-02 01:22:06 +01:00
Julian Ospald 9f8c9c228d
Reduce IS_WINDOWS CPP 2021-10-17 20:57:22 +02:00
Julian Ospald c846e52acb
Cleanup during unpack failures as well 2021-10-10 20:48:33 +02:00
Julian Ospald c4ab59f7bf
Make sure to always ass GHC env var, fixes #258 2021-10-03 11:38:53 +02:00
Julian Ospald 3b8f2e8307
Apply patches before bootstrap 2021-09-29 23:08:55 +02:00
Julian Ospald 0af7aaef3c
Fix ``--overwrite-version` for `ghcup compile ghc`
Fixes #253
2021-09-29 22:33:17 +02:00
Julian Ospald d2b4eccac2
Honour GHC bootstrap compiler during git clone stages
Fixes #250
2021-09-27 12:51:59 +02:00