fix(sync-templates): keep parachain-template's workspace Cargo.toml #7439
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.
Description
Another small fix for sync-templates. We're copying the
polkadot-sdk
'sparachain-template
files (including theparachain-template-docs
's Cargo.toml) to the directory where we're creating the workspace with allparachain-template
members crates, and workspace's toml. The error is that in this directory for the workspace we first create the workspace's Cargo.toml, and then copy the files of thepolkadot-sdk
'sparachain-template
, including theCargo.toml
of theparachain-template-docs
crate, which overwrites the workspace Cargo.toml. In the end we delete theCargo.toml
(which we assume it is of theparachain-template-docs
crate), forgetting that previously there should've been a workspace Cargo.toml, which should still be kept and committed to the template's repository.The error happens here: https://github.com/paritytech/polkadot-sdk/actions/runs/13111697690/job/36577834127
Integration
N/A
Review Notes
Once again, merging this into master requires re-running sync templates based on latest version on master. Hopefully this will be the last issue related to the workflow itself.