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.
With this PR, the
sns
DFX extension'sextension.json
can now be automatically updated by runningcargo 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 runcargo 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 runcargo test
at least once during development anyway.I plan to add this for the
nns
extension as well at some point.