Skip to content

Commit

Permalink
The version kwarg must be a string. Closes mesonbuild#7975.
Browse files Browse the repository at this point in the history
  • Loading branch information
jpakkane authored and xclaesse committed Nov 13, 2020
1 parent 8992729 commit d4cd0ce
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions mesonbuild/interpreter.py
Original file line number Diff line number Diff line change
Expand Up @@ -3175,6 +3175,8 @@ def func_project(self, node, args, kwargs):
self.build.project_name = proj_name
self.active_projectname = proj_name
self.project_version = kwargs.get('version', 'undefined')
if not isinstance(self.project_version, str):
raise InvalidCode('The version keyword argument must be a string.')
if self.build.project_version is None:
self.build.project_version = self.project_version
proj_license = mesonlib.stringlistify(kwargs.get('license', 'unknown'))
Expand Down

0 comments on commit d4cd0ce

Please sign in to comment.