Skip to content

--watch-file ignores dot files #2282

Open

Description

@MatthiasKunnen

What is the current behavior?

When --watch-file .build-finished is used, changes to that file are ignored.

What is the expected or desired behavior?

When the file specified using --watch-file is changed, the extension should reload. Alternatively, passing dot files should be caught and reported to avoid confusion on the user's behalf.

Problem analysis

The problem is that dot files are ignored by default regardless of --watch-file. See line 43 in file-filter.js

baseIgnoredPatterns = [
'**/*.xpi',
'**/*.zip',
'**/.*', // any hidden file and folder
'**/.*/**/*', // and the content inside hidden folder
'**/node_modules',
'**/node_modules/**/*',
],

and this line in the log

[util/file-filter.js][debug] Resolved path **/.* with sourceDir /redacted to /redacted/**/.*

Version information

  • Firefox version: 89.0.2
  • Your OS and version: Ubuntu 18.04.5 LTS
  • Node: v12.22.0
  • npm: 6.14.11
  • web-ext: 6.2.0

web-ext.log

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    Priority

    None yet

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions