acoustic-carpenter-78188
04/03/2026, 9:08 PMgit config --global --add safe.directory before the build step to fix the vcs_versioning (new setuptools_scm) failure in the container environment
• Add PR trigger on workflow/`gen/python` changes for dry-run testing (publish steps are skipped on PRs)
• Use dummy version 0.0.0.dev0 for PR dry runs since github.ref_name isn't a tag
Context
The v2.0.10 publish failed (run) because setuptools_scm was updated upstream (rebranded as vcs_versioning) and now attempts git introspection even when SETUPTOOLS_SCM_PRETEND_VERSION is set. Git refuses due to container directory ownership mismatch.
Test plan
• Verify this PR triggers the workflow and the build step succeeds
• Verify publish steps are skipped (gated on github.event_name == 'push')
• main
• #6583
• fix: add git safe.directory config for publish-python workflow 👈
flyteorg/flyteacoustic-carpenter-78188
04/03/2026, 10:35 PM