Closed dwisiswant0 closed 1 year ago
So basically I did this experiment based on this article which is that it's running on the GitLab registry, so I wanted to try it on the GitHub action.
Upon investigation, I discovered that the problem stemmed from the GitHub runner image, issue actions/runner-images#6775. The command git rev-parse --is-inside-work-tree
was returning the error: "dubious ownership in repository at [...]".
To resolve this issue, I implemented a (temporary) workaround by adding this step (after checking out the repo):
- run: git config --global --add safe.directory "$(pwd)"
Interestingly, even though I noticed that the entrypoint was running the same command: https://github.com/goreleaser/goreleaser-cross/blob/df843fc30e9ac0fa1ebee4b269be267690344120/entrypoint.sh#L78
I'm unsure how the problem initially occurred.
Hello, I intended to experiment with cross-compilation using goreleaser-cross within a container. However, I encountered an issue where
goreleaser
detected that thecwd
is "not a git repository." I'm looking for any suggestions on why this might occur and if there's a possible workaround.Below is the GitHub workflow snippet that only has two steps.
Error occurred:
Thanks!