metaplex-foundation / solita

Genrates an SDK API from solana contract IDL.
Apache License 2.0
140 stars 32 forks source link

feat: better errors when IDL handler fails #90

Closed thlorenz closed 2 years ago

thlorenz commented 2 years ago

Summary

Previously solita failed to properly propagate exit codes of the tool generating the IDL. This led to developers not being aware of the issue as well as the CI checking for IDL changes not alerting either since in those cases solita just kept the old IDL and generated code from it.

This has been fixed as follows:

Sample Screenshot

Screen Shot 2022-09-23 at 10 31 58 AM

Remaining Work

To further eliminate the possibility of the IDL generation failing without solita noticing I will add an option to delete the existing IDL before solita runs. This option will be set to true by default.