Refactor bootstrap to reflect that the state_dir and topsrcdir are both mandatory
Categories
(Firefox Build System :: General, task)
Tracking
(firefox82 fixed)
| Tracking | Status | |
|---|---|---|
| firefox82 | --- | fixed |
People
(Reporter: rstewart, Assigned: rstewart)
References
Details
Attachments
(1 file)
| Assignee | ||
Comment 1•6 years ago
|
||
bootstrap is written in such a way that we don't necessarily assume the existence of either the global state directory (~/.mozbuild) or a local checkout of mozilla-central. The independence from ~/.mozbuild is a design decision that may have been appropriate at some point, but today it's arguably useless to continue executing bootstrap without a global state directory (we install a bunch of build dependencies there, as well as the mach virtualenvs that are needed for running non-bootstrap mach commands after bug 1656993). The independence from a local checkout is an artifact of the old design of python/mozboot/bin/bootstrap.py, which is no longer necessary as of bug 1647792.
With that in mind, 1) throw errors if we can't create the global state directory or find the topsrcdir, and 2) remove all existing conditionals of the form "if the global state directory exists" or "if the root of the checkout exists" since these conditions are always going to be true in practice.
Comment 3•6 years ago
|
||
| bugherder | ||
Description
•