mtkennerly / dunamai

Dynamic versioning library and CLI
https://dunamai.readthedocs.io/en/latest
MIT License
320 stars 23 forks source link

dunamai 1.18.0 silently does not produce version with `--strict` in CI #66

Closed danielgafni closed 1 year ago

danielgafni commented 1 year ago

I recently upgraded dunamai to 1.1.18 and it started failing in my GitLab CI.

  1. It started displaying this error: Detected Git repository, but failed because of dubious ownership, so I quickly added git config --global --add safe.directory '*' to my Dockerfile as the first stackoverflow answer suggested. Not sure if this is relevant to the issue.
  2. dunamai from git --style pep440 --strict in CI is executing with exit code 0, but doesn't produce any stdout. It runs normally locally.

I'm using Docker executor with GitLab so everything is running inside Docker.

mtkennerly commented 1 year ago

Hi! Some questions for you:

mtkennerly commented 1 year ago

I'm going to close this for now, but if you get a chance to check the above details, please let me know.