Skip to content

Clear info on missing patches #51

Closed
@krzkaczor

Description

@krzkaczor

I was just dockerizing one of my projects and due to funny COPY syntax i copied my patches to root of the project instead to ./patches directory. Which resulted in silent fail to patch packages.

The console output was:

patch-package: Applying patches...

I assumed that i just successfully applied patches. When it really did nothing.

I propose one of two things:

  1. Fail when no patches were found. This seems like kinda logical step to me — if there are no patches something is wrong.
  2. Make console output more ovious like write: NO PACKAGES FOUND (but exit with 0).

I am willing to make a PR after agreeing on what's better.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions