ApeWorX / py-solc-x

Python wrapper and version management tool for the solc Solidity compiler.
https://solcx.readthedocs.io/
MIT License
138 stars 48 forks source link

update solc_wrapper to expect return value of 0 from 'help' if solc >= v0.8.10 #140

Closed pacrob closed 10 months ago

pacrob commented 2 years ago

What I did

Starting with solc v0.8.10, running solc --help gives a return value of 0. It was previously 1. I added version checking to expect the correct value.

How I did it

I checked if the solc version being used was < v0.8.10 and set the expected return value accordingly.

How to verify it

Run the tests

Checklist

pacrob commented 2 years ago

Lint wouldn't work even on master, but I matched the surrounding code style. pre-commit threw mypy errors on code I didn't touch - I'd fix it if I knew how, but it's out of scope for this fix.

It doesn't seem appropriate for docs or changelog, but I'm happy to do so if you'd like.

philogicae commented 2 years ago

Great job. Why is this pull request still in pending since 6 months ?

antazoey commented 10 months ago

thank you, this was also causing problems for me

antazoey commented 10 months ago

btw im fixing all lint, tests, and type stuff on another branch. we are cleaning this package up and getting it updated because it has been causing lots of issues, such as this one.