Closed cereal2nd closed 1 year ago
That is indeed strange. Try either of these:
"pyproject.toml" = [
'^version = "{version}"',
'^current_version = "{version}"',
]
"pyproject.toml" = [
'current_version = "{version}"',
'version = "{version}"',
]
What I think is happening: The pattern starting with version =
is greedy and matches both for line 7 and 44. Then there is nothing left for the pattern with current_version =
to match against.
Can you think of a way to fix this? The least we might be able to do is to generate a better error message.
"pyproject.toml" = [ '^version = "{version}"', '^current_version = "{version}"', ]
This one worked perfect, thanks.
What I think is happening: The pattern starting with
version =
is greedy and matches both for line 7 and 44. Then there is nothing left for the pattern withcurrent_version =
to match against.
This indeed seems to be the case
Can you think of a way to fix this? The least we might be able to do is to generate a better error message.
A better error would already help a lot, do a check and see how many matches you find, is his more then one you can give a nice error message.
but if i debug this with bumbver grep it seems to work
this is the pyproject.toml file