Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update all packages in one go instead of one-by-one #25

Merged
merged 1 commit into from
Feb 28, 2022

Conversation

joao-paulo-parity
Copy link
Contributor

@joao-paulo-parity joao-paulo-parity commented Feb 16, 2022

Split $update_crates_on_default_branch through shell expansion so that it can be used properly with cargo -p. Update: I thought there was a problem with for var in $string from local testing but it turns out my tests were wrong.

This PR would change the current behavior and make all the packages update in one go instead of one by one. Originally it was created for paritytech/polkadot#4928 but it's not strictly needed.

This change should also "just work" for other existing repositories which are not Polkadot e.g. https://github.com/paritytech/substrate/blob/b2f76e26a9e8cd0d5457058b20bb250d092a16ac/.gitlab-ci.yml#L555

create update_crates function
@joao-paulo-parity joao-paulo-parity changed the title Split crates to update through shell expansion Update all packages in one go instead of one-by-one Feb 16, 2022
@@ -322,9 +332,7 @@ patch_and_check_dependent() {
# Update the crates to the latest version. This is for example needed if there
# was a PR to Substrate which only required a Polkadot companion and Cumulus
# wasn't yet updated to use the latest commit of Polkadot.
for update in $update_crates_on_default_branch; do
cargo update -p "$update"
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@bkchr is it necessary for packages to be updated one by one or could all of them be updated in one go as done in update_crates?

Copy link
Member

Choose a reason for hiding this comment

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

They can all be updated together 👍

@joao-paulo-parity joao-paulo-parity merged commit f84c9cc into paritytech:master Feb 28, 2022
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.

2 participants