Fixes a bug where the subproject version was not validated when the subproject had already been processed. The bug would cause inconsistent build results if the subproject was referenced more than once (diamond) with conflicting version requirements.pull/9817/head
parent
bc8c1f578f
commit
5b3094d43b
5 changed files with 23 additions and 0 deletions
@ -0,0 +1,4 @@ |
||||
project('120 subproject version conflict') |
||||
|
||||
A_dep = subproject('A').get_variable('A_dep') |
||||
B_dep = subproject('B', version: '1').get_variable('B_dep') |
@ -0,0 +1,4 @@ |
||||
project('A') |
||||
|
||||
B_dep = subproject('B').get_variable('B_dep') |
||||
A_dep = declare_dependency(dependencies: B_dep) |
@ -0,0 +1,3 @@ |
||||
project('B', version: '100') |
||||
|
||||
B_dep = declare_dependency() |
@ -0,0 +1,7 @@ |
||||
{ |
||||
"stdout": [ |
||||
{ |
||||
"line": "test cases/failing/120 subproject version conflict/meson.build:4:0: ERROR: Subproject B version is 100 but 1 required." |
||||
} |
||||
] |
||||
} |
Loading…
Reference in new issue