generated from pdm-project/pdm
-
-
Notifications
You must be signed in to change notification settings - Fork 38
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow filtering tags when using SCM to determine the version #219
Comments
This requirement is reasonable and the solution is also very clear. Would you like to submit a PR? |
I'll try to get to it this week, but no promises. Do you happen to have any ideas on whether this is an issue for |
There are two situations here:
|
This was referenced Mar 31, 2024
Merged
frostming
pushed a commit
that referenced
this issue
Apr 30, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I've used PDM in a few monorepos. In each one, I need to build different projects which all have dynamic SCM versioning enabled. Each project has it's own versioning determined by git tags. e.g.
project-a/0.1.1
andproject-b/2.1.1
. However, when using scm versioning, only the most recent of those tags will be used and only one project will derive a proper version number.The workaround for git is to use a
call
based version and reuse most of the same machinery (see below for the workaround).I don't know the equivalent for mercurial, but for git, we simply need to be able to provide an argument for the
--match
command line argument for git describe called here in pdm.Would it be possible to provide a
tag_filter
key in thetool.pdm.version
table which accepts a glob that is used for the--match
parameter?Workaround:
The text was updated successfully, but these errors were encountered: