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

Ignore .git/ dir when copying files for Docker build #298

Closed
wants to merge 1 commit into from

Conversation

george-angel
Copy link
Member

@george-angel george-angel commented Aug 6, 2024

This can manifest as errors during tests attempty to do a local Git
clone:

34.36 2024-08-06T10:46:26Z      DEBUG   controller-runtime.cluster.events       failed setting up repository clone: Run(/usr/bin/git clone --no-checkout /src /tmp/run_app-a_app-a_repo_380715592): exit status 128: { stdout: "", stderr: "Cloning into '/tmp/
run_app-a_app-a_repo_380715592'...\nfatal: hardlink different from source at '/tmp/run_app-a_app-a_repo_380715592/.git/objects/pack/pack-3eb4972719122450751fc1840c8260f9393efd5b.idx'\n" }     {"type": "Warning", "object": {"kind":"Waybill","namespace":"ap
p-a","name":"app-a","uid":"4063ba1b-fa52-4605-b3cf-0c0ace497b1b","apiVersion":"kube-applier.io/v1alpha1","resourceVersion":"202"}, "reason": "WaybillRunRequestFailed"}

This can manifest as errors during tests attempty to do a local Git
clone:

```
34.36 2024-08-06T10:46:26Z      DEBUG   controller-runtime.cluster.events       failed setting up repository clone: Run(/usr/bin/git clone --no-checkout /src /tmp/run_app-a_app-a_repo_380715592): exit status 128: { stdout: "", stderr: "Cloning into '/tmp/
run_app-a_app-a_repo_380715592'...\nfatal: hardlink different from source at '/tmp/run_app-a_app-a_repo_380715592/.git/objects/pack/pack-3eb4972719122450751fc1840c8260f9393efd5b.idx'\n" }     {"type": "Warning", "object": {"kind":"Waybill","namespace":"ap
p-a","name":"app-a","uid":"4063ba1b-fa52-4605-b3cf-0c0ace497b1b","apiVersion":"kube-applier.io/v1alpha1","resourceVersion":"202"}, "reason": "WaybillRunRequestFailed"}
```
@george-angel george-angel deleted the no-git branch August 7, 2024 08:10
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