Skip to content

Use _ instead of @ in the default snapshot file name - #147

Open
CiprianPotor wants to merge 1 commit into
paritytech:mainfrom
CiprianPotor:fix/snapshot-name-no-at
Open

CiprianPotor wants to merge 1 commit into
paritytech:mainfrom
CiprianPotor:fix/snapshot-name-no-at

Conversation

@CiprianPotor

Copy link
Copy Markdown

Closes #70

When no path is passed to create-snapshot, the file is named <spec-name>-<spec-version>@<block-hash>.snap. The @ is annoying in some shells and scripts, so this switches it to _, e.g. node-268_latest.snap.

Changes:

  • core/src/commands/create_snapshot.rs: default name format and the doc comment on snapshot_path
  • cli/main.rs and README.md: the example log line, so cargo rdme --check stays happy

Heads up: anyone relying on the old default name in scripts will get a different file name. Explicit paths are not affected. Let me know if you'd prefer a different separator.

The @ in the default snapshot name is not handled well by some shells
and scripts. Switch to <spec-name>-<spec-version>_<block-hash>.snap and
update the docs.

Closes paritytech#70

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

@ in file name is not liked by shell

1 participant