feat(sync_repos): add sync-repos command to replace shell-based fdk_apps sync#305
feat(sync_repos): add sync-repos command to replace shell-based fdk_apps sync#305loispostula wants to merge 1 commit intomainfrom
Conversation
…pps sync
Replaces the brittle sync_to_repos.sh with a proper Rust implementation.
Uses toml_edit for structured TOML transforms and tokio::process::Command
for injection-safe shell operations.
- Syncs app dirs, infra, and .cargo/config.toml via rsync
- Transforms root Cargo.toml: version transplant, deps merge with
workspace member path rewriting, patch section replacement
- Strips path deps from app Cargo.tomls, rewrites inter-app paths
- Adjusts include_bytes!/include_str! relative paths for apps/ nesting
- Deletes stale Cargo.lock and regenerates via cargo generate-lockfile
- Auto-discovers apps from source when --apps is omitted
- Defaults branch name to chore/sync-fdk-apps-{version}
- Supports --dry-run and --create-pr
Signed-off-by: Lois Postula <lois.postula@fslabs.ca>
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
|
@loispostula: The following test failed, say
DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here. |
Replaces the brittle
sync_to_repos.shwith a proper Rust implementation. Uses toml_edit for structured TOML transforms and tokio::process::Command for injection-safe shell operations.