Closed
Bug 1678070
Opened 5 years ago
Closed 5 years ago
License lints expects to see .hg, fails with a git-cinnabar checkout
Categories
(Developer Infrastructure :: Lint and Formatting, task)
Developer Infrastructure
Lint and Formatting
Tracking
(firefox85 fixed)
RESOLVED
FIXED
85 Branch
| Tracking | Status | |
|---|---|---|
| firefox85 | --- | fixed |
People
(Reporter: hsivonen, Assigned: Sylvestre)
Details
Attachments
(1 file)
With a cinnabar checkout, this happens:
$ ./mach lint --warnings --outgoing
Error running mach:
['lint', '--warnings', '--outgoing']
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 can invoke |./mach busted| to check if this issue is already on file. If it
isn't, please use |./mach busted file lint| to report it. If |./mach busted| is
misbehaving, you can also inspect the dependencies of bug 1543241.
If filing a bug, please include the full output of mach, including this error
message.
The details of the failure are as follows:
mozlint.errors.LinterParseError: tools/lint/license.yml: The exclude directive contains the following paths that don't exist:
.hg
File "/opt/Projects/gecko/tools/lint/mach_commands.py", line 94, in lint
return cli.run(*runargs, **lintargs)
File "/opt/Projects/gecko/python/mozlint/mozlint/cli.py", line 286, in run
lint.read(find_linters(lintargs["config_paths"], linters))
File "/opt/Projects/gecko/python/mozlint/mozlint/roller.py", line 184, in read
for linter in chain(*[self.parse(p) for p in paths]):
File "/opt/Projects/gecko/python/mozlint/mozlint/roller.py", line 184, in <listcomp>
for linter in chain(*[self.parse(p) for p in paths]):
File "/opt/Projects/gecko/python/mozlint/mozlint/parser.py", line 31, in __call__
return self.parse(path)
File "/opt/Projects/gecko/python/mozlint/mozlint/parser.py", line 125, in parse
self._validate(linter)
File "/opt/Projects/gecko/python/mozlint/mozlint/parser.py", line 80, in _validate
raise LinterParseError(
Sentry is attempting to send 0 pending error messages
Waiting up to 2 seconds
Press Ctrl-C to quit
Expected not to have to do touch .hg
| Assignee | ||
Updated•5 years ago
|
Assignee: nobody → sledru
| Assignee | ||
Comment 1•5 years ago
|
||
Pushed by sledru@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/f3b691803e43
mozlint/license: remove .hg from the exclude list r#linter-reviewers, hsivonen r=linter-reviewers,ahal DONTBUILD
Comment 3•5 years ago
|
||
| bugherder | ||
Status: NEW → RESOLVED
Closed: 5 years ago
status-firefox85:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → 85 Branch
Updated•3 years ago
|
Product: Firefox Build System → Developer Infrastructure
You need to log in
before you can comment on or make changes to this bug.
Description
•