cloud-native-toolkit / cloud-native-toolkit/terraform-tools-gitops
Colima runtime creates unsafe repository errors
- Dominant language
- HCL
- Stars
- 5
- Forks
- 5
- PR merge metrics
- No merged PRs in 30d
Description
I am using Colima runtime on Mac with Apple silicone. When I execute:
```
cd /terraform/watson-core-serving/terraform
terraform init
```
I see many errors like this:
│ Error: Failed to download module
│
│ Could not download module "setup_clis" (.terraform/modules/sealed-secrets/main.tf:16) source code from "git::https://github.com/cloud-native-toolkit/terraform-util-clis.git": error downloading
│ 'https://github.com/cloud-native-toolkit/terraform-util-clis.git': /usr/bin/git exited with 128: fatal: unsafe repository
│ ('/terraform/watson-core-serving/terraform/.terraform/modules/sealed-secrets.setup_clis' is owned by someone else)
│ To add an exception for this directory, call:
│
│ git config --global --add safe.directory /terraform/watson-core-serving/terraform/.terraform/modules/sealed-secrets.setup_clis
It is possible to workaround this problem by running the commands mentioned in the error, e.g.:
```
git config --global --add safe.directory /terraform/watson-core-serving/terraform/.terraform/modules/sealed-secrets
git config --global --add safe.directory /terraform/watson-core-serving/terraform/.terraform/modules/sealed-secrets.setup_clis
git config --global --add safe.directory /terraform/watson-core-serving/terraform/.terraform/modules/sealed-secret-cert
```
This is very messy and time consuming. I appreciate that Colima is current considered 'use at your own risk' for this project. Unfortunately I do not have a Docker license. Is there a more reliable solution or fix for this Colima issue?
Thanks
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.