Skip to content
This repository was archived by the owner on Nov 15, 2023. It is now read-only.

Conversation

@s3krit
Copy link
Contributor

@s3krit s3krit commented Nov 12, 2021

Adds bumping spec_version and version in Cargo.toml to the checklist after publishing a release.

Adds bumping spec_version and version in Cargo.toml to the checklist after publishing a release.
@s3krit s3krit added A2-insubstantial Pull request requires no code review (e.g., a sub-repository hash update). B0-silent Changes should not be mentioned in any release notes C1-low PR touches the given topic and has a low impact on builders. labels Nov 12, 2021
@s3krit s3krit requested review from bkchr and chevdor November 12, 2021 13:04
Copy link
Contributor

@chevdor chevdor left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I will come up with a suggestion

draft-release
- [ ] Once the new release has been published, bump `spec_version` in Polkadot, Westend and Kusama.
- [ ] Once the new releaes has been published, bump the version string in various `Cargo.toml` files
- For example, bumping v0.9.12 to v0.9.13: `grep -rl '^version = "0.9.12"' ./**/Cargo.toml | xargs sed -i 's/^version = "0.9.12"/version = "0.9.13"/g'`
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The command "as is" does not work on MacOS. I am testing a small variation.

draft-release
- [ ] Once the new release has been published, bump `spec_version` in Polkadot, Westend and Kusama.
- [ ] Once the new releaes has been published, bump the version string in various `Cargo.toml` files
- For example, bumping v0.9.12 to v0.9.13: `grep -rl '^version = "0.9.12"' ./**/Cargo.toml | xargs sed -i 's/^version = "0.9.12"/version = "0.9.13"/g'`
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would the following work for you as well ?

Suggested change
- For example, bumping v0.9.12 to v0.9.13: `grep -rl '^version = "0.9.12"' ./**/Cargo.toml | xargs sed -i 's/^version = "0.9.12"/version = "0.9.13"/g'`
- For example, bumping v0.9.12 to v0.9.13: `grep -rl '^version = "0.9.12"' ./**/Cargo.toml | xargs sed -i '' -e 's/^version = "0.9.12"/version = "0.9.13"/g'`

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Think the suggestion went a bit wonky - are you suggesting to swap -i for -e?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no no, as it shows: to explicitely tell -i to be empty and -e to the previous content.

@s3krit s3krit closed this Mar 27, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

A2-insubstantial Pull request requires no code review (e.g., a sub-repository hash update). B0-silent Changes should not be mentioned in any release notes C1-low PR touches the given topic and has a low impact on builders.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants