$ ./mozilla/mach file-info bugzilla-component calendar Error running mach: ['file-info', 'bugzilla-component', 'calendar'] The error occurred in code that was called by the mach command. This is either a bug in the called code itself or in the way that mach is calling it. You should consider filing a bug for this issue. If filing a bug, please include the full output of mach, including this error message. The details of the failure are as follows: BuildReaderError: ============================== ERROR PROCESSING MOZBUILD FILE ============================== The error occurred while processing the following file: /Users/kewisch/mozilla/comm-central/moz.build The underlying problem is we referenced a path that does not exist. That path is: /Users/kewisch/mozilla/comm-central/moz.build Either create the file if it needs to exist or do not reference it. File "/Users/kewisch/mozilla/comm-central/mozilla/python/mozbuild/mozbuild/frontend/mach_commands.py", line 96, in file_info_bugzilla for p, m in self._get_files_info(paths).items(): File "/Users/kewisch/mozilla/comm-central/mozilla/python/mozbuild/mozbuild/frontend/mach_commands.py", line 153, in _get_files_info return reader.files_info(allpaths) File "/Users/kewisch/mozilla/comm-central/mozilla/python/mozbuild/mozbuild/frontend/reader.py", line 1260, in files_info paths, _ = self.read_relevant_mozbuilds(paths) File "/Users/kewisch/mozilla/comm-central/mozilla/python/mozbuild/mozbuild/frontend/reader.py", line 1224, in read_relevant_mozbuilds self.config, metadata=metadata): File "/Users/kewisch/mozilla/comm-central/mozilla/python/mozbuild/mozbuild/frontend/reader.py", line 987, in read_mozbuild sys.exc_info(), sandbox_load_error=sle)
Filesystem reading mode requires a moz.build file in the top source directory, which comm-central doesn't have. I suspect if you create an empty moz.build file, this will magically start working.
Component: mach → Build Config
Product: Core → MailNews Core
Its magic! Adding that moz.build file worked. I was so sure that we had one there that I didn't even bother checking for the file existence.
Status: NEW → RESOLVED
Last Resolved: 3 years ago
Resolution: --- → INVALID
You may want to keep this bug open to track adding a moz.build file to comm-central.
Piggybacking that in bug 1139679.
You need to log in before you can comment on or make changes to this bug.