This is something to avoid using if possible, you wouldn't want to
require these for a builder that's the default for your project,
otherwise you'd need to specify it every time you ran the CLI.
However builders like the mock builder need to know which mock config to
use, and it could be multiple values for one project trying to do builds
for multiple OSs.
Adding a "builder.prop = value" to a releaser target section will pass
the valie prop to the builder configured.
If you just find the most recent tag during a --test build
you run into git finding recent tags for *other* packages that are also
in the same git repo. For example, if you have a git repo with 2
packages:
package-a
package-b
and you make a tag on package-a and have:
package-a-0.1.1-1
then you make a few commits and someone does a tag on package-b:
package-b-0.1.1-1
then a few more commits are done on code in package-a but nobody retags.
Now git describe will look back for the most recent tag and find
package-b-0.1.1-1 and have a commit count of the number of commits from
the package-b tag and not from the package-a tag. By passing in the
--match option on 'git describe' we force git to only look for the tag
for the current package, not the most recent in the repo.
this is left over after commit 7c3c04f7
Release type is now handled by overriden release_type() method.
addressing:
Traceback (most recent call last):
File "/usr/bin/tito", line 23, in <module>
CLI().main(sys.argv[1:])
File "/usr/lib/python2.7/site-packages/tito/cli.py", line 98, in main
return module.main(argv)
File "/usr/lib/python2.7/site-packages/tito/cli.py", line 515, in main
return tagger.run(self.options)
File "/usr/lib/python2.7/site-packages/tito/tagger.py", line 96, in run
self._tag_release()
File "/usr/lib/python2.7/site-packages/tito/zstreamtagger.py", line 20, in _tag_release
self._update_package_metadata(new_version, release=True)
TypeError: _update_package_metadata() got an unexpected keyword argument 'release'
addressing:
Warning: user.email in ~/.gitconfig not set.Traceback (most recent call last):
File "/usr/bin/tito", line 22, in
CLI().main(sys.argv[1:])
File "/home/dev/src/tito/src/tito/cli.py", line 98, in main
return module.main(argv)
File "/home/dev/src/tito/src/tito/cli.py", line 512, in main
offline=self.options.offline)
File "/home/dev/src/tito/src/tito/tagger.py", line 65, in init
self.git_user, self.git_email.replace("+", "\+").replace(".", "\.")))
AttributeError: 'NoneType' object has no attribute 'replace'