Skip to content

Dotfiles are being ignored #444

@KaoruDev

Description

@KaoruDev

TLDR: dotfiles are ignored in exclude option, I believe the bug is here:

.flat_map { |path| Dir[path.to_s] }

and changing it to Dir.glob(path.tos, File::FNM_DOTMATCH)

According to: https://stackoverflow.com/questions/11385795/how-to-list-directory-contents-including-dotfiles-but-not-and

Steps to reproduce

I have the following structure:

.buildkite/src/
  package.json
  index.js
  .eslintrc.js
.eslintrc.json
packaage.json

And the following config:

all:
  exclude:
    - ".buildkite/**/*"

However, dotfile changes are still getting picked up by pronto.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bughelp wantedGet involved! We'd love to have your help.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions