Skip to content

Inconsistent stash.GetItemsFor(filename=_file, classifier=Inherit.CLASSIFIER) #367

Description

@MQueiros

I'm seeing inconsistent results while using oelint.var.inheritlast rule
from oelint-adv.

One of the inconsistent scenarios is while using a single
inherit statement vs. using multiple ones:

Test case 1

test-recipe.bb

inherit test native

test.bbclass

inherit deploy
inherit cmake

Results in the inherits being processed in this order: ['test', 'native', 'deploy', 'cmake'] which triggers oelint.var.inheritlast.native:native needs to be inherited last

Test case 2

test-recipe.bb

inherit test
inherit native

test.bbclass

inherit deploy
inherit cmake

Results in the inherits being processed in this order: ['test', 'deploy', 'cmake', 'native'] which pleases oelint.var.inheritlast rule.

From my point of view both inherit test native and inherit test+inherit native should have
resulted in the same output, meaning that the oelint rule should have succeeded for both cases.

Tested using oelint-adv==9.1.0 and oelint-parser==8.6.0

Metadata

Metadata

Labels

breaking changebugSomething isn't workingcommunityCan be taken by the communityenhancementNew feature or requesthelp wantedExtra attention is needed

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions