hatch-vcs icon indicating copy to clipboard operation
hatch-vcs copied to clipboard

feat(version-source): mirror setuptools_scm override env vars for version

Open millsks opened this issue 4 months ago • 2 comments

Description

We use hatch-vcs in all of our projects. There is a specific version format that they push to us on our build pipeline to align with their SCM reporting. The HATCH_VERSION_OVERRIDE variable will allow me to set that prior to our build so that their requirement is being used.

If this variable is not set then then default behavior takes over.

millsks avatar Aug 27 '25 23:08 millsks

@ofek ready for review.

millsks avatar Aug 27 '25 23:08 millsks

Thank you for the feedback @RonnyPfannschmidt. Do the changes that I made align with your suggestion? Let me know if it should be altered even further.

millsks avatar Aug 28 '25 10:08 millsks