Julian Ospald
225d2d2be4
Merge branch 'bootstrap'
2019-01-07 11:08:40 +08:00
Julian Ospald
82c1636590
Add a bootstrap-haskell script, fixes #36
2019-01-04 17:55:47 +08:00
Julian Ospald
820d8eaa69
Improve error handling
...
In most cases, when we run a subshell with our own function
and assign the result to a variable, we also need to check that
the variable is non-empty, since 'die' and 'edo' don't propagate
to the parent shell.
In some cases, non-emptiness is handled in other ways or is not
fatal.
2019-01-04 16:07:50 +08:00
Julian Ospald
9cc652e34d
Remove is_sourced functionality, it's not needed anymore
2019-01-04 13:53:09 +08:00
Julian Ospald
4c548c1037
Tweak exit code for 'ghcup install'
...
If a GHC is already installed, we shouldn't treat it as an
error.
2019-01-04 13:51:29 +08:00
Julian Ospald
717a8256a6
Make 'ghcup set' tag-aware
2019-01-04 13:51:28 +08:00
Julian Ospald
d1cb7127af
Fix travis with latest shellcheck
2019-01-04 13:49:56 +08:00
Andrea Bedini
5f04b34b15
Introduce distro_alias for Amazon Linux
...
Amazon Linux introduces itself as
```
andrea:~ $ cat /etc/os-release
NAME="Amazon Linux AMI"
VERSION="2018.03"
ID="amzn"
ID_LIKE="rhel fedora"
VERSION_ID="2018.03"
PRETTY_NAME="Amazon Linux AMI 2018.03"
ANSI_COLOR="0;33"
CPE_NAME="cpe:/o:amazon:linux:2018.03:ga"
HOME_URL="http://aws.amazon.com/amazon-linux-ami/ "
```
2018-12-27 15:37:43 +01:00
Julian Ospald
75e48da9a0
Introduce a GHCUP_INSTALL_BASE_PREFIX
...
Partly "fixes" #7
2018-12-15 00:31:19 +08:00
Herbert Valerio Riedel
18d393cfba
Improve detection logic for CentOS/Alpine/AIX/FreeBSD
2018-11-28 01:08:20 +01:00
Herbert Valerio Riedel
d900d0b10c
Emit distro-alias inferred in `debug-info` output
2018-11-28 01:08:20 +01:00
Julian Ospald
907adca572
Create missing haddock -> haddock-ghc symlink
...
Fixes #50
2018-11-19 21:12:22 +08:00
Oleg Grenrus
6008d8a964
Support installing on macOS aka Darwin
...
Resolves https://github.com/haskell/ghcup/issues/33
2018-11-11 20:13:06 +02:00
Julian Ospald
2b9f1a4a20
Include tags in 'ghcup list' and improve formatting
2018-11-06 22:01:02 +08:00
Julian Ospald
5eee1b6d58
Fix check_meta_file_version calls
2018-11-06 16:27:27 +08:00
Julian Ospald
cbb027d1ea
Allow to specify tags for 'install' and 'install-cabal'
2018-11-06 15:14:55 +08:00
Julian Ospald
475d060abe
Rename self-update to upgrade, fixes #38
2018-11-04 19:06:40 +08:00
Julian Ospald
2ef3c22cab
Refactor checking for required commands
2018-11-04 18:26:21 +08:00
Julian Ospald
91f046f6e9
Allow ghcup to be sourced
2018-11-04 18:20:50 +08:00
Julian Ospald
72acd59025
Simplify mkdir calls
...
mkdir -p is POSIX, so just... use it.
2018-10-31 10:30:38 +08:00
Julian Ospald
c04b5bbea0
Some TODO
2018-10-30 22:19:20 +08:00
Julian Ospald
abfca7fa75
Simplify mkdir
2018-10-30 21:33:03 +08:00
Julian Ospald
c261fd7396
Remove stray TODO
2018-10-30 21:31:31 +08:00
Julian Ospald
c1f7ce75f0
Get rid of realpath requirement, fixes #31
2018-10-30 21:21:43 +08:00
Julian Ospald
488079e3a3
Bump VERSION to 0.0.6
2018-10-30 21:21:43 +08:00
Julian Ospald
cbb19a01c0
Check for required commands
...
Fixes #8
2018-10-30 21:21:42 +08:00
Julian Ospald
29911cd420
Introduce and use a meta file format for URLs and available versions
...
Fixes #21
Fixes #9
Fixes #10
Fixes #5
2018-10-30 21:21:42 +08:00
Julian Ospald
3f691b73ad
Fix debug-info to include CACHE_LOCATION
2018-10-28 17:36:10 +08:00
Julian Ospald
e3bc9ce99c
Introduce optional tarball caching, fixes #11
2018-10-28 17:34:37 +08:00
Julian Ospald
86ffcf81d9
Allow to use wget instead of curl, fixes #15
2018-10-28 17:00:54 +08:00
Julian Ospald
f71bf2fd51
Fix dangling GHC symlink check
2018-10-27 16:41:23 +08:00
Julian Ospald
34aa368e9b
Make GHC removal safer
...
Fixes #18
2018-10-27 16:18:14 +08:00
Julian Ospald
83cc66365b
Remove dangling ghc, ghci, ... symlinks after removal of active GHC
2018-10-27 15:16:57 +08:00
Julian Ospald
5bb5389192
Make uninstallation more robust
...
For an incomplete installation, we still want to remove
what is left over, so don't fail on non-existing symlinks
in $BIN_LOCATION.
2018-10-27 14:45:14 +08:00
Julian Ospald
5a18896d7a
Merge branch 'PR/add-debug-info-command'
2018-10-17 21:07:54 +08:00
Julian Ospald
0fd8085327
Merge branch 'PR/update-latest-known-cabal-install'
2018-10-17 21:06:30 +08:00
Julian Ospald
316fde7522
Merge branch 'PR/more-robust-unpacking'
2018-10-17 21:05:33 +08:00
Julian Ospald
0445e06ec1
Add a debug-info subcommand
2018-10-17 21:01:40 +08:00
Julian Ospald
869f306e35
Move error handling into download() function
...
This also makes the verbosity messages better.
2018-10-17 17:21:11 +08:00
Julian Ospald
976635b65f
More robust unpacking
...
On some system, tar might not be able to automatically uncompress,
so do it separately.
2018-10-17 17:21:11 +08:00
Julian Ospald
fe16061905
Latest known cabal is 2.4.0.0 now
2018-10-17 16:38:17 +08:00
Julian Ospald
90d068842d
Do smarter cleanup in case GHC installation fails
2018-10-17 15:42:38 +08:00
Julian Ospald
2eb9549a6c
Remove 'BuildFlavour = quick' since it doesn't have any effect
2018-10-17 10:17:27 +08:00
Julian Ospald
b2b020eff3
Allow to specify a build config for 'ghcup compile'
...
Fixes #19
2018-10-17 10:17:07 +08:00
Julian Ospald
0a5e5cb937
Fix references to hasufell
2018-10-16 14:41:42 +08:00
Julian Ospald
106d2bb81b
Increase version to 0.0.5
2018-10-16 01:06:42 +08:00
Julian Ospald
256d81eb13
Fix OS detection
...
Name is "Debian GNU/Linux" and not "Debian". Wildcard match
to make it more robust, same for Ubuntu.
2018-10-15 23:59:21 +08:00
Julian Ospald
a7c8f9da7c
Update self_update_usage
2018-10-15 22:19:03 +08:00
Sam Halliday
fafb9bbf9d
self-update inplace
2018-10-15 14:32:04 +01:00
Julian Ospald
bd50a5b290
Release 0.0.4
2018-10-09 00:34:17 +08:00