Allow to statically overwrite distro detection, fixes #421

This commit is contained in:
2022-11-12 14:12:13 +08:00
parent 010db93b93
commit e924ad8278
8 changed files with 85 additions and 55 deletions

View File

@@ -71,6 +71,20 @@ explaining all possible configurations can be found in this repo: [config.yaml](
Partial configuration is fine. Command line options always override the config file settings.
## Overriding distro detection
If you're running e.g. an Ubuntu derivate based on 18.04 and ghcup is picking bindists that
don't work well, you could do this in `config.yaml`:
```yml
platform-override:
arch: A_64
platform:
contents: Ubuntu
tag: Linux
version: '18.04'
```
## Env variables
This is the complete list of env variables that change GHCup behavior: