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

Bug in installer.sh#L552-L556 and missing signature files #664

Open
dlangBugzillaToGithub opened this issue Sep 5, 2020 · 3 comments
Open

Comments

@dlangBugzillaToGithub
Copy link

Andrew Edwards reported this on 2020-09-05T14:11:31Z

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

CC List

  • Seb

Description

The following lines:

https://github.com/dlang/installer/blob/720d3af0756390c065774b62952076fc73d17a49/script/install.sh#L552-L556

incorrectly assumes that we've always used 2.xxx.x for our releases. As a result, it wrongly classifies any compiler prior to 2.065.0 as nightlies and fails to install them.

I attempted to remedy this by changing the condition to:

    if [[ ! $input_compiler =~ -[0-9]{4}-[0-9]{2}-[0-9]{2}$ ]] &&
       [[ ! $input_compiler =~ -[0-9][.][0-9]{3}$ ]] &&
       [[ ! $input_compiler =~ -[0-9][.][0-9]{3}[.][0-9]{1,3}(-[0-9]{1,3})? ]]; then

Not sure if this messes up some other logic further down in the script but it works for my purposes. I don't install nighties so I couldn't care less. Nightlies are a hit and miss thing anyway. We haven't had one uploaded since March. The other option I see is to rename these releases to match current convention. 

This works to an extent. It downloads the archive but fails on attempt to download the signature files. All release from 2.000 to 2.064 are missing them.

Please upload those files and patch the script to allow for their download/installation.

--Andrew
@dlangBugzillaToGithub
Copy link
Author

dlang-bot commented on 2020-09-06T15:17:27Z

@wilzbach created dlang/installer pull request #470 "Issue 21226 - Support installing older DMD versions" mentioning this issue:

- Issue 21226 - Support installing older DMD versions

https://github.com/dlang/installer/pull/470

@dlangBugzillaToGithub
Copy link
Author

dlang-bot commented on 2020-09-06T23:52:00Z

dlang/installer pull request #470 "Issue 21226 - Support installing older DMD versions" was merged into master:

- e66b89def6eb2bdfaa0b47a4139191b5900c7566 by Sebastian Wilzbach:
  Issue 21226 - Support installing older DMD versions

https://github.com/dlang/installer/pull/470

@dlangBugzillaToGithub
Copy link
Author

greeenify commented on 2020-09-07T01:22:42Z

PR only fixed the installer script, the issue is kept open as the old archives still need to signed.

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