Skip to content

Extend the GNU patch warning to cover PATH-shadowing #6052

@dra27

Description

@dra27

As reported on Discuss, when opam checks for GNU patch, it only checks the first resolution in PATH, which is potentially confusing if the user believes they have installed GNU patch.

The warning can be easily extended, in a similar vein to the Git-for-Windows checks in opam init: resolve patch in each directory in PATH and display a different message if GNU patch is found in a shadowed location suggesting that PATH needs to be adjusted.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions