Skip to content

submodule cloning may not be important to the job, ignore errors#6172

Merged
jakecoffman merged 1 commit intomainfrom
jakecoffman/ignore-submodule-cloning-errors
Nov 28, 2022
Merged

submodule cloning may not be important to the job, ignore errors#6172
jakecoffman merged 1 commit intomainfrom
jakecoffman/ignore-submodule-cloning-errors

Conversation

@jakecoffman
Copy link
Copy Markdown
Member

@jakecoffman jakecoffman commented Nov 18, 2022

In #5982 we enabled submodule cloning by default. However, sometimes a repo has a submodule that is inaccessible to Dependabot that is unrelated to dependencies.

We talked about adding a flag to disable it, but it's nice when Dependabot just works.

So for this PR I took the approach to just ignore the submodule clone errors and continue with the update. That way if it was not important, it will succeed in doing the update.

If it was important it will fail later, but I added an error log that says the nature of the failure during the fetch as a hint as to what might be wrong.

@jakecoffman jakecoffman requested a review from bdragon November 18, 2022 20:10
@jakecoffman jakecoffman force-pushed the jakecoffman/ignore-submodule-cloning-errors branch from 7070ba2 to f8ee856 Compare November 28, 2022 18:20
@jakecoffman jakecoffman marked this pull request as ready for review November 28, 2022 18:21
@jakecoffman jakecoffman requested a review from a team as a code owner November 28, 2022 18:21
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👌 I can picture this being really helpful 😄

@jakecoffman jakecoffman force-pushed the jakecoffman/ignore-submodule-cloning-errors branch from 5075dbc to a2de2d1 Compare November 28, 2022 18:39
@jakecoffman jakecoffman merged commit c5b3865 into main Nov 28, 2022
@jakecoffman jakecoffman deleted the jakecoffman/ignore-submodule-cloning-errors branch November 28, 2022 19:16
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