mach file-info bugzilla-component doesn't work with comm-central

RESOLVED INVALID

Status

MailNews Core
Build Config
RESOLVED INVALID
3 years ago
3 years ago

People

(Reporter: Fallen, Unassigned)

Tracking

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

3 years ago
$ ./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()[2], sandbox_load_error=sle)

Comment 1

3 years ago
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
(Reporter)

Comment 2

3 years ago
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

Comment 3

3 years ago
You may want to keep this bug open to track adding a moz.build file to comm-central.
(Reporter)

Comment 4

3 years ago
Piggybacking that in bug 1139679.
You need to log in before you can comment on or make changes to this bug.