Skip to content

Search results for config file might be unintuitive #57

@naitian

Description

@naitian

This is a bug in code that I wrote (oops).

I'm pretty sure if your directory structure looks like this:

- dir/
  - sink.config.json
  - dir2/
    - config.json

and you run sink inside of dir2, it will use sink.config.json instead of config.json.

This is because the config search runs findUp for each potentially config filename, instead of searching for all of the config files at each level of the directory. Pretty sure this can be fixed by just passing in the array of filenames.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions