Bug 1678070 Comment 0 Edit History

Note: The actual edited comment in the bug view page will always show the original commenter’s name and original timestamp.

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`
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`

Back to Bug 1678070 Comment 0