feat(sync): custom bundle path + hybrid mode merge#440
Conversation
Co-authored-by: HarryCampion <40582604+HarryCampion@users.noreply.github.com>
|
@copilot perhaps we have path to template, e.g. --path-to-template . would be the root, and would look for both template.yml, and template.lock. E.g. all template related files are expected to be under the same path. |
…te option Per code review feedback: a single --path-to-template directory option is cleaner than two separate --config and --lock-file options. Both template.yml and template.lock are resolved as <dir>/template.yml and <dir>/template.lock. - cli.py: removed --config/-c and --lock-file; added --path-to-template - test_sync_e2e.py: rewrote TestSyncE2ECustomPaths around the new option Co-authored-by: HarryCampion <40582604+HarryCampion@users.noreply.github.com>
Done in d0733b9. Replaced the two separate rhiza sync --path-to-template /custom/rhiza # reads /custom/rhiza/template.yml, writes /custom/rhiza/template.lock
rhiza sync --path-to-template . # uses project root for both filesThe default behaviour (no flag → |
@copilot great. What about custom bundles? |
Bundle definitions ( If the ask is to support a locally-overridden |
Co-authored-by: HarryCampion <40582604+HarryCampion@users.noreply.github.com>
template-bundles.ymlwas hardcoded to.rhiza/template-bundles.ymlin the upstream repo, and hybrid mode (templates:+include:) silently dropped explicitinclude:paths by overwriting them with resolved bundle paths.Changes
RhizaTemplatemodeltemplate_bundles_pathfield (default:.rhiza/template-bundles.yml) — reads fromtemplate-bundles-pathin YAML; omitted from serialisation when default to keep configs clean_clone_template()insync.pytemplate.template_bundles_pathinstead of the hardcoded stringinclude:paths (deduplicated) rather than overwritingTests
test_hybrid_mode_merges_bundle_and_include_paths—update_sparse_checkoutreceives both resolved bundle paths and explicitinclude:pathstest_custom_template_bundles_path_is_used— custom path propagates to bothclone_repositoryandRhizaBundles.from_yamlOriginal prompt
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.