-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
submodules: false
not working - Checkout action still tries to checkout submodules that were removed.
#988
Comments
submodules: false
not working.submodules: false
not working - Checkout action still tries to checkout submodules that were removed.
I had the same issue. The key is here:
The .git directory is local, you don't commit it, so in the runner machine that directory still exists. actions/checkout doesn't always fully delete the clone directory in the builder machine (see git-directory-helper.ts) so .git/config is still there with the old submodule references after changing My workaround was to erase the clone directory in the runner machine. |
related: |
@gobetti Thanks for the details information! This was super helpful and appears to be the root of our issue. All seems well now :) |
I see this was closed, but is their as associated PR that resolved this issue such that |
I have removed some old submodules from our project, but the checkout action fails due to an error when checking out submodules:
I have explicitly set
submodules: false
in the checkout action job, but it still appears to be trying to checkout submodules:I have verified that all submodule references have been removed from the repository directory:
submodules/xxx
directories and files were deleted..gitmodules
file was deleted.submodules
entries in.git/config
were deleted.It seems like the only explanation is the checkout action is not properly respecting the
submodules: false
setting.Can someone please take a look at this and see if it's an issue in the action?
The text was updated successfully, but these errors were encountered: