Files that get added and uploaded, then deleted (both local and remote), then added again, will not get uploaded again, because checksums are outdated.
WHAT is this pull request doing?
When a file has been successfully deleted (both local and remote), checksum in checksum store is removed, so that the same file can be reuploaded again.
How to test your changes?
In a theme directory, run shopify theme serve
Add a new file, e.g. index.js with content console.log('…') in the assets folder, and verify that it gets uploaded.
Delete the file locally, and verify that it gets deleted remotely too.
Revert the delete, and verify that it gets uploaded again.
Post-release steps
[ ] New CLI 3.x release
Update checklist
[x] I've added a CHANGELOG entry for this PR (if the change is public-facing)
[x] I've considered possible cross-platform impacts (Mac, Linux, Windows).
[x] I've left the version number as is (we'll handle incrementing this when releasing).
[x] I've included any post-release steps in the section above (if needed).
WHY are these changes introduced?
Fixes https://github.com/Shopify/cli/issues/733
Files that get added and uploaded, then deleted (both local and remote), then added again, will not get uploaded again, because checksums are outdated.
WHAT is this pull request doing?
When a file has been successfully deleted (both local and remote), checksum in checksum store is removed, so that the same file can be reuploaded again.
How to test your changes?
shopify theme serve
index.js
with contentconsole.log('…')
in theassets
folder, and verify that it gets uploaded.Post-release steps
Update checklist