Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

install.sh: Add error for trying to install two compilers #707

Open
dlangBugzillaToGithub opened this issue Mar 31, 2021 · 0 comments
Open

Comments

@dlangBugzillaToGithub
Copy link

John Hall reported this on 2021-03-31T23:43:33Z

Transferred from https://issues.dlang.org/show_bug.cgi?id=21786

Description

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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant