Julian Ospald
da988b1eaf
Move away from github
2019-05-24 16:22:40 +08:00
Julian Ospald
8a6ff2ff16
Merge remote-tracking branch 'origin/pr/90'
2019-05-24 10:08:36 +08:00
Francesco Gazzetta
5a60195c47
Add Linux Mint support
2019-05-19 19:50:21 +02:00
Julian Ospald
17aafe3439
posix_realpath: if dir does not exist also append to current dir
...
This matches realpath behavior.
2019-05-17 11:12:12 +08:00
Julian Ospald
6e1ee078cc
posix_realpath: make sure we don't loop infinitely
...
On broken symlink loops this would never terminate. The most
naive and easy solution is a max of loop steps.
2019-05-17 11:12:12 +08:00
Julian Ospald
09abd528ee
Merge branch 'some-error-handling'
2019-05-17 11:05:29 +08:00
Julian Ospald
ed456d2071
Fix cd when CDPATH is set wrt #98
2019-05-17 11:02:07 +08:00
Julian Ospald
3c5e323490
Improve some error handling
2019-04-24 14:38:34 +08:00
Julian Ospald
c64cf0efca
Silence stderr for download_to_stdout
2019-04-11 10:24:30 +08:00
Julian Ospald
f8abcb7d08
Merge branch 'system-reqs'
2019-04-11 10:15:15 +08:00
Julian Ospald
ad75249fc4
Merge branch 'ghcup-upgrade-tweak'
2019-04-10 23:57:35 +08:00
Julian Ospald
ba64b13417
Introduce print-system-reqs wrt #49
...
And also make bootstrap-haskell print this by default.
2019-04-10 23:43:58 +08:00
Julian Ospald
50f661092d
Fix ghcup list -t all
2019-04-10 21:56:48 +08:00
Julian Ospald
2a92c96ea9
Merge branch 'overhaul-list-subcommand'
2019-04-10 19:06:31 +08:00
Julian Ospald
ae8b5ae27e
Debug output to stderr
2019-04-10 14:42:36 +08:00
Julian Ospald
032b95aa9b
Remove show command, which is obsolete now
2019-04-10 14:37:01 +08:00
Julian Ospald
f26830c9b4
Considerably tweak the list subcommand wrt #88
2019-04-10 14:37:01 +08:00
Julian Ospald
36e8389bb0
Tweak ghcup upgrade
...
1. add --inplace flag
2. by default install into BIN_LOCATION
2019-04-07 02:08:09 +08:00
Julian Ospald
ff9261ba0c
Merge branch 'changelog-subcommand'
2019-03-07 20:01:29 +08:00
Julian Ospald
12f9f155fb
Implement changelog subcommand wrt #72
2019-03-07 20:00:43 +08:00
Julian Ospald
d01ed08504
Use trap to clean up interrupted download in cache
...
Fixes #73
2019-03-06 17:10:19 +08:00
Julian Ospald
bbf63c3881
Merge remote-tracking branch 'origin/pr/70'
2019-02-20 18:20:57 +08:00
George Wilson
ae263ac282
Unquote invocations in emake
2019-02-20 13:18:22 +10:00
George Wilson
35bd1c04db
Only read the FreeBSD major version
2019-02-18 15:48:16 +10:00
George Wilson
45d939219c
Make shellcheck happy
2019-02-18 13:19:25 +10:00
Julian Ospald
eb1dd745c1
Hide 'compile' subcommand by default from help menu
2019-02-18 11:01:52 +08:00
George Wilson
398d8d7ae0
Define emake to enable installing on FreeBSD
2019-02-17 09:11:16 +10:00
Joe Kachmar
318fbdc680
Bumps VERSION to 0.0.7
2019-02-12 14:25:04 -05:00
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