Skip to content

fix(ci): add --init flag to submodule update command - #53

Merged
liamjdavis merged 2 commits into
mainfrom
copilot/fix-submodule-initialization-ci
Feb 15, 2026
Merged

fix(ci): add --init flag to submodule update command#53
liamjdavis merged 2 commits into
mainfrom
copilot/fix-submodule-initialization-ci

Conversation

Copilot AI commented Feb 15, 2026

Copy link
Copy Markdown
Contributor

The update-proofs-submodule job fails when attempting to update the erdos-graph submodule without initializing it first.

Changes

  • Added --init flag to git submodule update in .github/workflows/ci.yml line 159
- git submodule update --remote --merge erdos-graph
+ git submodule update --init --remote --merge erdos-graph

This ensures the submodule is initialized before updating when the workflow checks out erdos-graph-proofs.

Original prompt

Fix Submodule Initialization in CI Workflow

The update-proofs-submodule job in .github/workflows/ci.yml fails because it doesn't initialize the submodule before attempting to update it.

Changes Required

In the file .github/workflows/ci.yml, find the line:

git submodule update --remote --merge erdos-graph

And change it to:

git submodule update --init --remote --merge erdos-graph

This is in the Update erdos-graph submodule step of the update-proofs-submodule job (around line 154).

Context

When this workflow runs, it checks out the erdos-graph-proofs repository and attempts to update its erdos-graph submodule to the latest version. However, the submodule is not initialized, causing the error: "Submodule path 'erdos-graph' not initialized. Maybe you want to use 'update --init'?"

Adding the --init flag will initialize the submodule if it's not already initialized before attempting to update it.

This pull request was created from Copilot chat.


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Co-authored-by: liamjdavis <66973153+liamjdavis@users.noreply.github.com>
@liamjdavis
liamjdavis marked this pull request as ready for review February 15, 2026 22:32
Copilot AI changed the title [WIP] Fix submodule initialization in CI workflow fix(ci): add --init flag to submodule update command Feb 15, 2026
Copilot AI requested a review from liamjdavis February 15, 2026 22:33
@liamjdavis
liamjdavis merged commit 68e7b57 into main Feb 15, 2026
8 checks passed
@liamjdavis
liamjdavis deleted the copilot/fix-submodule-initialization-ci branch February 15, 2026 22:34
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