RalfG / python-wheels-manylinux-build

GitHub Action to build Python manylinux wheels
https://github.com/marketplace/actions/python-wheels-manylinux-build
Apache License 2.0
92 stars 44 forks source link

.git directory not mounted into docker container, breaks version detection #53

Closed mr-c closed 1 year ago

mr-c commented 2 years ago

https://github.com/common-workflow-language/schema_salad/runs/7371667826?check_suite_focus=true#step:7:131

Any suggestions for a workaround? I initially tried modifying my repo's .dockerignore but that is used for building containers, not running the python-wheels-manylinux-build container

RalfG commented 2 years ago

Hm... That's inconvenient, because the action itself does not decide what gets mounted in the container and what not. This is done by GitHub Actions itself: https://docs.github.com/en/actions/creating-actions/dockerfile-support-for-github-actions#workdir

I'm not sure how to overcome this, except for maybe cloning the repo again with this action's pre-build-command option? Although that is far from ideal...

Another option is to check if the more advanced pypa/cibuildwheel does work with setuptools-scm.