dawidd6 / action-debian-package

:gear: A GitHub Action for building Debian packages
MIT License
24 stars 8 forks source link

pwd doesn't look like a git repository .. #72

Closed ennorehling closed 1 year ago

ennorehling commented 1 year ago

I'm getting this error message when building a Debian packages for my project.

Run dawidd6/action-debian-package@v1.4.4
> Get image name
> Print details
> Create container
> Start container
> Prepare environment
> Update packages list
> Install development packages
> Trust this git repo
> Install build dependencies
v Create tarball
  /usr/bin/docker exec csmapfx git-deborig HEAD
  pwd doesn't look like a git repository ..
  Error: The process '/usr/bin/docker' failed with exit code 128

The full job log in question is here: https://github.com/ennorehling/csmapfx/actions/runs/3719532423/jobs/6308448425

ennorehling commented 1 year ago

There is a long-ish explanation in the commit message for 0181a8bea44aa348993a3d77a9cdce7a59c4f709 claiming this is a problem with running git as root, and proposing a fix, "tell git to trust the repo", but that fix doesn't seem to work here.

waja commented 1 year ago

Same for me ... I'm still facing this issue (again) in recent builds, while was working well a month ago. All those jobs were using dawidd6/action-debian-package@v1.4.4 and it is not limited to one repo, but affects all of my (recent) pipelines.

waja commented 1 year ago

it seems something different then #62

waja commented 1 year ago

Maybe it's worth to try another approach?

https://github.com/pi-top/debian-package-build-action is using https://github.com/pi-top/debian-package-build-action/blob/master/docker_base/scripts/build/build-deb.sh#L39-L58 to create the tarball

dawidd6 commented 1 year ago

Thanks @waja, looks like it works now!

ennorehling commented 1 year ago

Works for me now, too! Thanks!