-
Notifications
You must be signed in to change notification settings - Fork 37
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
Container error fatal: --local can only be used inside a git repository
#56
Comments
Having the exact same issue over here as well, first occurrence of the failure was earlier today (~4 hours ago). |
My pipelines also broke 😅 ideas on how to fix it are welcome! Gonna take a look at it |
As @Michele-Alberti mentioned, the Python 3.8 image did change on 2023-02-04. One thought is to fork the repository and pin the image to the previous digest from January. I think this diff shows necessary digest. I will try this later today or tomorrow, but if someone else feels inspired, please go ahead. |
My suspect is that it is a consequence of the recent update to DockerHub's python image. It seems that the image for 3.8.15 was not changed in the last two months. Another way could be to downgrade Git to a less recent version inside the |
I was thinking of adding to the
Based on this. |
@woile that's worth a try, I think the git version in the container is older.
|
PR is open #57 Tests are passing by using:
|
Seems to be working, the tests went ok, and this action was able to release itself. On a plus, we now use alpine with py3.11, which should make things a bit faster, though I don't know how reliable is alpine this days, I hope better than a couple of years ago. |
I've updated I'm closing this issue. |
Description
One of my workflows based on commitizen-action is now returning the following error:
It used to work properly and the
yaml
configuration file for the workflow was not subjected to changes when the issue occurred.I have already tested that the error is raised for both
commitizen-action@0.15.1
andcommitizen-action@0.16.0
.The only step before
commitizen-tools/commitizen-action@0.15.1
isactions/checkout@v3
.References
A similar issue is reported in peter-evans/create-pull-request#1170 and actions/checkout#760.
Docker image update
I've noticed that the image
python:3.8
on DockerHub (used by theDockerfile
) was updated just before the first failure of the above-mentioned workflow.According to the first reference, this issue may be related to Git version: a building process based on different images may explain why the workflow was successful and then failed in two consequent runs, with no configuration changes (and within a few hours of each other).
The text was updated successfully, but these errors were encountered: