Replace the local snapshot extension .zip to .snapshot#304
Open
anisaoshafi wants to merge 2 commits into
Open
Conversation
gtsiolis
reviewed
Jun 12, 2026
gtsiolis
left a comment
Member
There was a problem hiding this comment.
Left some comments below we discuss async or sync!
|
|
||
| const ( | ||
| snapshotExt = ".snapshot" // user-facing extension for local snapshots | ||
| legacySnapshotExt = ".zip" // accepted on load for backward compatibility |
Member
There was a problem hiding this comment.
praise: Thanks for adding this! 🙏
| lstk snapshot load my-baseline # loads ./my-baseline or ./my-baseline.zip | ||
| lstk snapshot load ./checkpoint.zip # loads from explicit path | ||
| lstk snapshot load pod:my-baseline # loads from LocalStack Cloud | ||
| lstk snapshot load my-baseline # loads ./my-baseline or ./my-baseline.snapshot |
Member
Collaborator
Author
There was a problem hiding this comment.
Good catch, will change 🙏🏼
Collaborator
Author
There was a problem hiding this comment.
fyi, this error was returned from emulator in this line, we only prefix it with load failed for service:.
I modified it to look like this. let me know if it needs more tweaking. thank you!

Member
There was a problem hiding this comment.
Perfect, this matches the error pattern and style we introduced for other cases, too. 💯
f297e58 to
75a6d5b
Compare
75a6d5b to
2037aa1
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Use

.snapshotextension for saving snapshots locally.cc @gtsiolis