Skip to content

fix compiler version parsing #29

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

Merged
merged 1 commit into from
May 28, 2025
Merged

fix compiler version parsing #29

merged 1 commit into from
May 28, 2025

Conversation

pkhry
Copy link

@pkhry pkhry commented May 27, 2025

Description

Updates version parsing from resolc stdout --version command to account for v1.* releases

@pkhry pkhry requested a review from smiasojed May 27, 2025 12:44
.ok_or_else(|| SolcError::msg("Unable to retrieve version from resolc output"))
.and_then(|version| {
Version::from_str(version)
Copy link

@filip-parity filip-parity May 28, 2025

Choose a reason for hiding this comment

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

Should we still care about the logic to strip commit hashes (e.g. split('+').next() that was implemented before) to ensure Version::from_str receives a clean version string?

Copy link
Author

Choose a reason for hiding this comment

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

it should be fine as we concatenate the build data if it's present

@pkhry pkhry requested a review from filip-parity May 28, 2025 08:00
@pkhry pkhry merged commit 12a95ae into main May 28, 2025
16 checks passed
@pkhry pkhry deleted the pkhry/compiler_version_parsin branch May 28, 2025 09:45
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