Open Bug 1670288 Opened 8 months ago Updated 1 month ago

Bootstrap mach completion scripts

Categories

(Firefox Build System :: Bootstrap Configuration, enhancement, P4)

enhancement

Tracking

(Not tracked)

People

(Reporter: ahal, Unassigned)

References

Details

Bug 1519990 introduced new tab completion script generation, it can be used like ./mach mach-completion <shell> -f <path/to/put/file>.

It would be cool if we could automatically detect shell / environment and put the completion script in the correct spot. We could also set up a cron task to periodically re-generate it (as it will become out of date over time).

Not sure if this logic should belong in mozboot or mach core, but filing here for now.

Depends on: 1519990

It would be cool if we could automatically detect shell / environment and put the completion script in the correct spot. We could also set up a cron task to periodically re-generate it (as it will become out of date over time).

Seems like bootstrap is the right place for this. Since bootstrap would typically be run on a semi-regular basis, that would erase the need for periodic re-generation -- if the script gets out of date, just re-run bootstrap as you would to fix any other issue with your machine getting out-of-sync with the mach source.

Yeah, I think it should hook into mach bootstrap no matter what. But mozboot could call into code that lives under mach. See also my vision for bootstrapping in bug 1526021.

Oh, yeah, I don't care about the exact directory it lives under :) Still, IMO the cron thing does not seem necessary.

True, personally I avoid mach bootstrap since it does so much and takes so long.. so I'll personally keep it as a cron task. But agree mach bootstrap can just focus on installing the scripts and not worry about setting up cron.

You need to log in before you can comment on or make changes to this bug.