dfinity / dfx-extensions

Source repo for DFX extensions binaries and metadata
Apache License 2.0
8 stars 5 forks source link

refactor: Automatically update the SNS extension's extension.json #126

Closed anchpop closed 2 months ago

anchpop commented 2 months ago

With this PR, the sns DFX extension's extension.json can now be automatically updated by running cargo test. If the extension.json has been updated, the test fails, so CI will fail if you try to commit a change that requires a change to extension.json. This means that the developer can just run cargo test before committing, which will fail the first time and then succeed the second time. This may be slightly unintuitive but I think it is a good developer experience, as they'll likely run cargo test at least once during development anyway.

I plan to add this for the nns extension as well at some point.