I’m trying to build a version management tool for the solidity compiler solc in Julia, and, while the process seems to work properly, I’ve got a curious warning message at then end of the process.
Here a MWE:
using HTTP
filename = "solc-macosx-amd64-v0.8.9+commit.e5eed63a"
OS = "macosx"
url = string("https://solc-bin.ethereum.org/",OS,"-amd64/",filename)
r = HTTP.request("GET", url)
HTTP.download(url, "test/")
run(`chmod a+x $(string("test/",filename))`)
cd("test")
run(`./$filename`);
Indeed, it was unclear to me just because of my misunderstanding of the process (I was trying to translate a function from a Python package). I should use extra argument as you mentioned, in order to indicate to the ‘solc’ compiler what command should it run.
Thanks for your precision for the download function.