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

Fix submodule checkout issue #450

Merged
merged 1 commit into from
Feb 19, 2023
Merged

Fix submodule checkout issue #450

merged 1 commit into from
Feb 19, 2023

Conversation

wata727
Copy link
Member

@wata727 wata727 commented Feb 19, 2023

A few days ago, aws-sdk-go submodule checkout failed with the following error:

  /usr/bin/git submodule sync
  /usr/bin/git -c protocol.version=2 submodule update --init --force --depth=1
  Submodule 'rules/models/aws-sdk-go' (https://github.com/aws/aws-sdk-go) registered for path 'rules/models/aws-sdk-go'
  Cloning into '/home/runner/work/tflint-ruleset-aws/tflint-ruleset-aws/rules/models/aws-sdk-go'...
  remote: app=lariat msg="[FATAL]: Internal error"        
  remote: aborting due to possible repository corruption on the remote side.
  Error: fatal: early EOF
  Error: fatal: fetch-pack: invalid index-pack output
  Error: fatal: clone of 'https://github.com/aws/aws-sdk-go' into submodule path '/home/runner/work/tflint-ruleset-aws/tflint-ruleset-aws/rules/models/aws-sdk-go' failed

https://github.com/terraform-linters/tflint-ruleset-aws/actions/runs/4214996572/jobs/7316120928

From what I've researched, it seems likely that this is an issue due to repository size. This pull request sets --depth=0 to reduce the repository size to fetch.

@wata727 wata727 force-pushed the fix_submodule_checkout branch from a2ac61b to b295242 Compare February 19, 2023 08:42
@wata727 wata727 force-pushed the fix_submodule_checkout branch from b295242 to 925d509 Compare February 19, 2023 08:47
@wata727 wata727 marked this pull request as ready for review February 19, 2023 08:51
@wata727 wata727 merged commit 59e45d4 into master Feb 19, 2023
@wata727 wata727 deleted the fix_submodule_checkout branch February 19, 2023 08:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

1 participant