ZedThree / clang-tidy-review

Create a pull request review based on clang-tidy warnings
MIT License
88 stars 44 forks source link

Dockerfile fails to build #86

Closed IsaacMarovitz closed 1 year ago

IsaacMarovitz commented 1 year ago

Attempting to use clang-tidy-review I get this error from the action

2023-07-06T19:59:11.5407657Z Removing intermediate container 5eda914fadea
2023-07-06T19:59:11.5407989Z  ---> cb99761ce9ff
2023-07-06T19:59:11.5408262Z Step 3/5 : COPY . .git /clang_tidy_review/
2023-07-06T19:59:11.5439561Z COPY failed: file not found in build context or excluded by .dockerignore: stat .git: file does not exist
2023-07-06T19:59:11.5469697Z ##[warning]Docker build failed with exit code 1, back off 5.164 seconds before retry.
2023-07-06T19:59:16.7121971Z ##[command]/usr/bin/docker build -t 2a6c8c:5d04df7dbf5641ae97c0cd868c6f5549 -f "/home/runner/work/_actions/ZedThree/clang-tidy-review/v0.12.0/Dockerfile" "/home/runner/work/_actions/ZedThree/clang-tidy-review/v0.12.0"
2023-07-06T19:59:16.7612511Z Sending build context to Docker daemon  210.4kB
2023-07-06T19:59:16.7627557Z 
2023-07-06T19:59:16.8022483Z Step 1/5 : FROM ubuntu:22.04
2023-07-06T19:59:16.8023137Z  ---> 99284ca6cea0
2023-07-06T19:59:16.8040176Z Step 2/5 : RUN apt update &&     DEBIAN_FRONTEND=noninteractive     apt-get install -y --no-install-recommends    build-essential cmake git     tzdata     clang-tidy-11     clang-tidy-12     clang-tidy-13     clang-tidy-14     python3     python3-pip     && rm -rf /var/lib/apt/lists/
2023-07-06T19:59:16.8041221Z COPY failed: file not found in build context or excluded by .dockerignore: stat .git: file does not exist
2023-07-06T19:59:16.8109117Z  ---> Using cache
2023-07-06T19:59:16.8109399Z  ---> cb99761ce9ff
2023-07-06T19:59:16.8109828Z Step 3/5 : COPY . .git /clang_tidy_review/
2023-07-06T19:59:16.8111527Z ##[warning]Docker build failed with exit code 1, back off 6.813 seconds before retry.
2023-07-06T19:59:23.6268554Z ##[command]/usr/bin/docker build -t 2a6c8c:5d04df7dbf5641ae97c0cd868c6f5549 -f "/home/runner/work/_actions/ZedThree/clang-tidy-review/v0.12.0/Dockerfile" "/home/runner/work/_actions/ZedThree/clang-tidy-review/v0.12.0"
2023-07-06T19:59:23.6592023Z Sending build context to Docker daemon  210.4kB
2023-07-06T19:59:23.6593129Z 
2023-07-06T19:59:23.7004367Z Step 1/5 : FROM ubuntu:22.04
2023-07-06T19:59:23.7007211Z  ---> 99284ca6cea0
2023-07-06T19:59:23.7007892Z Step 2/5 : RUN apt update &&     DEBIAN_FRONTEND=noninteractive     apt-get install -y --no-install-recommends    build-essential cmake git     tzdata     clang-tidy-11     clang-tidy-12     clang-tidy-13     clang-tidy-14     python3     python3-pip     && rm -rf /var/lib/apt/lists/
2023-07-06T19:59:23.7010123Z  ---> Using cache
2023-07-06T19:59:23.7010352Z  ---> cb99761ce9ff
2023-07-06T19:59:23.7010807Z Step 3/5 : COPY . .git /clang_tidy_review/
2023-07-06T19:59:23.7023122Z COPY failed: file not found in build context or excluded by .dockerignore: stat .git: file does not exist
2023-07-06T19:59:23.7037814Z ##[endgroup]
2023-07-06T19:59:23.7064790Z ##[error]Docker build failed with exit code 1
2023-07-06T19:59:23.7346139Z Cleaning up orphan processes
eguiraud commented 10 months ago

For anyone else that ends up here: this was a problem with v0.12.0, fixed in v0.12.1.

The README still uses v0.12.0, but actually the latest tag is v0.14.0 and it does not have the problem reported in this issue.

ZedThree commented 10 months ago

Thanks @eguiraud ! I'll update the README