Look for file from latest directory of stage up to the root dir of the spec

Bug #1918846 reported by Benjamin Allot on 2021-03-12
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Mojo: Continuous Delivery for Juju

Bug Description

I tried to run a `mojo collect` with a stage `is/controllers/ps5/production` with `collect` being in `is/controllers` but no luck.
The paths mojo tries are:
 * collect
 * production/collect
 * ps5/production/collect
 * is/controllers/ps5/collect
 * controllers/ps5/production/collect
 * is/controllers/ps5/production/collect

I would expect to check, in this order:
 * is/controllers/ps5/production/collect
 * is/controllers/ps5/collect
 * is/collect
 * collect

I'm not quite sure to understand the list provided by `mojo collect`.
This is happening in https://bazaar.launchpad.net/~mojo-maintainers/mojo/trunk/view/head:/mojo/spec.py#L65

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers