How to rollback to an older EOSIO.CDT version with brew

in #eos5 years ago (edited)

How to rollback to an older EOSIO.CDT version with brew

<p dir="auto">Recently, EOSIO.CDT 1.7 has been released, but it has a [severe bug] where it crashes when trying to compile a contract using an <code>eosio::ecc_public_key in one of its table structures. <p dir="auto">If you're on MAC you might wonder how to roll-back to a previous EOSIO.CDT version using brew. <p dir="auto">Sadly, there's no versioning for the EOSIO.CDT releases, but you can still rollback to a previous version by installing it directly from an old GitHub commit. <p dir="auto">Search the <a href="https://github.com/EOSIO/homebrew-eosio.cdt" target="_blank" rel="nofollow noreferrer noopener" title="This link will take you away from hive.blog" class="external_link">EOSIO/homebrew-eosio.cdt for a commit containing your desired version to install in the <code>eosio.cdt.rb file, view the RAW version of this file and install it by directly providing this URL to <code>brew install <pre><code># remove old version $ brew remove eosio.cdt # install 1.6.3 $ brew install https://raw.githubusercontent.com/EOSIO/homebrew-eosio.cdt/d0f0320017315bd5ac69aa1e1ce001c6567af6b3/eosio.cdt.rb <p dir="auto"><a href="https://learneos.dev#modal" target="_blank" rel="nofollow noreferrer noopener" title="This link will take you away from hive.blog" class="external_link"><img src="https://images.hive.blog/768x0/https://cmichel.io/images/learneos_subscribe.png" alt="Learn EOS Development Signup" srcset="https://images.hive.blog/768x0/https://cmichel.io/images/learneos_subscribe.png 1x, https://images.hive.blog/1536x0/https://cmichel.io/images/learneos_subscribe.png 2x" /> <hr /> <p dir="auto">Originally published at <a href="https://cmichel.io/how-to-rollback-to-an-older-eosio-cdt-version-with-brew/" target="_blank" rel="nofollow noreferrer noopener" title="This link will take you away from hive.blog" class="external_link">https://cmichel.io/how-to-rollback-to-an-older-eosio-cdt-version-with-brew/