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

submodule-sync: make fewer path assumptions #90

Merged
merged 1 commit into from
Oct 25, 2024

Conversation

rjhuijsman
Copy link
Contributor

Before this commit, per-submodule-build-matrix.sh assumed that the top level of the repo it was syncing was at ../../../../../, which happened to be true for all of our repos. As of reboot-dev/respect@323ce51 (#3786) however, that is no longer true.

This commit makes the script look up the top-level of its containing repo dynamically, with its only
assumption being that the script is being run from a submodule itself - which still holds.

TESTED: checked that the submodule-sync workflow passes again for the reboot-dev/respect repo
where it was previously broken.

Before this commit,
`per-submodule-build-matrix.sh` assumed that the
top level of the repo it was syncing was at
`../../../../../`, which happened to be true for
all of our repos. As of
reboot-dev/mono@323ce51
however, that is no longer true.

This commit makes the script look up the top-level
of its containing repo dynamically, with its only
assumption being that the script is being run from
a submodule itself - which still holds.

TESTED: checked that the `submodule-sync` workflow
passes again for the `reboot-dev/respect` repo
where it was previously broken.
@rjhuijsman rjhuijsman self-assigned this Oct 25, 2024
@rjhuijsman rjhuijsman marked this pull request as ready for review October 25, 2024 10:36
@rjhuijsman rjhuijsman requested a review from onelxj October 25, 2024 10:36
@rjhuijsman rjhuijsman merged commit 45088e2 into main Oct 25, 2024
1 check passed
@rjhuijsman rjhuijsman deleted the rjh.fix-submodule-sync branch October 25, 2024 10:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants