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

Fix Chapel version query #1823

Merged
merged 1 commit into from
Oct 4, 2022
Merged

Conversation

bmcdonald3
Copy link
Contributor

In version 1.28 and prior, the chplVersion string is prefixed with "version", but that has been removed since, so this string split was resulting in an empty array, meaning that the index into the array was out of bounds.

This PR just does a replace on the string for "version ", so it works both for the old string that contained "version " and the new string that does not.

In version 1.28 and prior, the `chplVersion` string is prefixed
with "version", but that has been removed since, so this string
split was resulting in an empty array, meaning that the index
into the array was out of bounds.

This PR just does a replace on the string for "version ", so it
works both for the old string that contained "version " and the
new string that does not.
Copy link
Contributor

@hokiegeek2 hokiegeek2 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good catch, thanks for doing this!

@stress-tess stress-tess merged commit ae57eff into Bears-R-Us:master Oct 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants