./mach vendor failing to honor an `exclude` entry
Categories
(Developer Infrastructure :: Mach Vendor & Updatebot, defect)
Tracking
(firefox117 fixed)
| Tracking | Status | |
|---|---|---|
| firefox117 | --- | fixed |
People
(Reporter: jfkthame, Assigned: tjr)
References
Details
Attachments
(1 file)
In gfx/harfbuzz/moz.yaml, we have an entry under exclude:
- "src/test*"
which is intended to cause various test files present in the upstream src/ directory to be omitted when vendoring into Gecko.
However, this doesn't appear to work; running ./mach vendor gfx/harfbuzz/moz.yaml, the test files (test.cc, and a bunch of individual test-*.cc files) get included in the tree, and added to the moz.build file (which then results in a build failure).
Is this exclude pattern not valid (i.e. this is simply user error), in which case what would be the proper form? Or is ./mach vendor misbehaving?
| Assignee | ||
Comment 1•3 years ago
|
||
The problem comes from this line
The problem is basically precedence. If src is in include and src/test* is in exclude, then logically you want the src/test* files excluded. But if ** is in exclude and src is in include, logically you want the src directory included. But these are the same scenario.
| Assignee | ||
Comment 2•3 years ago
|
||
Comment 3•3 years ago
|
||
The severity field is not set for this bug.
:tjr, could you have a look please?
For more information, please visit BugBot documentation.
| Assignee | ||
Updated•3 years ago
|
Comment 5•3 years ago
|
||
| bugherder | ||
Description
•