Skip to content

Make the synced repository configurable#103

Merged
onelxj merged 1 commit into
mainfrom
onelxj.multi_nested_sync
Jul 12, 2026
Merged

Make the synced repository configurable#103
onelxj merged 1 commit into
mainfrom
onelxj.multi_nested_sync

Conversation

@onelxj

@onelxj onelxj commented Jul 12, 2026

Copy link
Copy Markdown
Contributor

The reusable submodules-sync workflow assumed its dev-tools submodule is a direct submodule of the repository whose submodules should be synced, and always acted on the repo one level up (cd "$(git rev-parse --show-toplevel)/..").

That breaks when dev-tools is nested more than one level deep — e.g. when a repository vendors another repository (which itself carries dev-tools) as a submodule. In that case the workflow enumerates and syncs the inner repository's submodules instead of the caller's.

Add an optional submodule_sync_root input, piped through to per-submodule-build-matrix.sh as SUBMODULE_SYNC_ROOT, naming the repository directory to act on relative to the checkout root. When it is unset the workflow keeps its previous behavior, so existing callers are unaffected; a caller whose dev-tools is nested can pass e.g. "." to sync its own top-level submodules.

The reusable `submodules-sync` workflow assumed its `dev-tools`
submodule is a direct submodule of the repository whose submodules
should be synced, and always acted on the repo one level up
(`cd "$(git rev-parse --show-toplevel)/.."`).

That breaks when `dev-tools` is nested more than one level deep — e.g.
when a repository vendors another repository (which itself carries
`dev-tools`) as a submodule. In that case the workflow enumerates and
syncs the *inner* repository's submodules instead of the caller's.

Add an optional `submodule_sync_root` input, piped through to
`per-submodule-build-matrix.sh` as `SUBMODULE_SYNC_ROOT`, naming the
repository directory to act on relative to the checkout root. When it
is unset the workflow keeps its previous behavior, so existing callers
are unaffected; a caller whose `dev-tools` is nested can pass e.g. "."
to sync its own top-level submodules.
@aviator-app

aviator-app Bot commented Jul 12, 2026

Copy link
Copy Markdown

Current Aviator status

Aviator will automatically update this comment as the status of the PR changes.
Comment /aviator refresh to force Aviator to re-examine your PR (or learn about other /aviator commands).

This PR was merged manually (without Aviator). Merging manually can negatively impact the performance of the queue. Consider using Aviator next time.


See the real-time status of this PR on the Aviator webapp.
Use the Aviator Chrome Extension to see the status of your PR within GitHub.

@onelxj onelxj requested a review from rjhuijsman July 12, 2026 23:35
@onelxj onelxj merged commit 18c067b into main Jul 12, 2026
0 of 2 checks passed
@onelxj onelxj deleted the onelxj.multi_nested_sync branch July 12, 2026 23:39
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