D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 21786 - install.sh: Add error for trying to install two compilers
Summary: install.sh: Add error for trying to install two compilers
Status: NEW
Alias: None
Product: D
Classification: Unclassified
Component: installer (show other issues)
Version: D2
Hardware: x86_64 Linux
: P4 enhancement
Assignee: No Owner
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-03-31 23:43 UTC by John Hall
Modified: 2022-12-17 10:31 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description John Hall 2021-03-31 23:43:33 UTC
A command like

~/dlang/install.sh install ldc,dub

installs ldc and a corresponding version of dub. However, install.sh does not support commands here other than dub. For instance, a call like

~/dlang/install.sh install ldc,dmd

will return errors like

Downloading and unpacking https://github.com/dlang/dub/releases/download/v/dub-v-linux-x86_64.tar.gz
curl: (22) The requested URL returned error: 404  

Instead, there should be a check that anything after the comma starts with dub and have an error if it is not. 

Alternately, it could loop through anything comma'ed so that the above command installs both ldc and dmd.