Closed tinjaw closed 4 years ago
Hi, If you don't supply the file
argument then you need to use a .bumpversion.cfg
configuration file to specify it.
Otherwise, bumpversion does not know which file to modify.
Here's a real example:
File version.txt
:
4.2.8
Bump the major
part.
Command:
bumpversion --current-version "4.2.8" major "version.txt"
Produces version.txt
:
5.0.0
When issue #120 gets fixed, we will be offering lots of examples that clarify usage like this.
Hi, If you don't supply the
file
argument then you need to use a.bumpversion.cfg
configuration file to specify it.Otherwise, bumpversion does not know which file to modify.
I forgot to mention that I am using a .bumpversion.cfg file.
Please share the content of your configuration file.
Typed the file name. Sorry.
So you had a [bumpversion:file:]
section but with a non-existing file in it? In that case, we should provide a better error message.
No. I had bump2version.cfg.
That explains a lot :-)
Documentation provides the following example:
however, when I run, I get.
It kinda defeats the purpose of automation if I am required to provide the new version number.