Closed Bug 1765118 Opened 3 years ago Closed 3 years ago

`.\mach bootstrap` will get trapped in an infinite loop without git/hg on windows

Categories

(Firefox Build System :: Bootstrap Configuration, defect)

Firefox 99
defect

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 1762059

People

(Reporter: trickypr, Unassigned)

Details

Steps to reproduce:

  1. Download the source code of firefox from https://archive.mozilla.org/pub/firefox/releases/99.0.1/source/firefox-99.0.1.source.tar.xz
  2. Extract into a new folder, open CMD in that folder
  3. Run .\mach bootstrap or .\mach --verbose bootstrap
  4. Select 2 (Firefox for Desktop)

Actual results:

Python will hang, consuming most of the systems CPU on a single core without providing any helpful output.

Expected results:

The existing source code for raising an error should be run, providing feedback to the user:

raise UserError(
        "Could not identify the root directory of your checkout! "
        "Are you running `mach bootstrap` in an hg or git clone?"
)
Component: Untriaged → Bootstrap Configuration
Product: Firefox → Firefox Build System
Status: UNCONFIRMED → RESOLVED
Closed: 3 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.