Sitelet https://web.archive.org/web/20210805215414/https://github.com/ethereum/solidity/issues/11651
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

[solidity-upgrade] Input file processing is out of sync with solc #11651

Open
cameel opened this issue Jul 13, 2021 · 0 comments
Open

[solidity-upgrade] Input file processing is out of sync with solc #11651

cameel opened this issue Jul 13, 2021 · 0 comments

Comments

@cameel
Copy link
Member

@cameel cameel commented Jul 13, 2021

Looks like soldity-upgrade has input file processing logic duplicated from CommandLineInterface.cpp. Especially readInputFiles() and file reader callback in SourceUpgrade.cpp. This logic in CommandLineInterface has recently been refactored in PRs like #11113, #11518. After #11545/#11617 will actually become functionally different so solidity-upgrade will be unable to resolve imports exactly the same way solc does so projects that depend on --base-path being set properly might no longer compile.

Logic needs to be unified in both places. Both should use FileReader and its callback. Preferably the input processing inside readInputFiles() itself should be shared between the two executables. I think that solidity-upgrade also needs --base-path option.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Solidity
  
New issues
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
1 participant