Skip to content

[Windows] Internal cygwin installation should not populate to the path  #1008

@dmtrKovalenko

Description

@dmtrKovalenko

When opam init is called with -cygwin-local-install flag it populates the PATH with a newly installed Cygwin bash instance which changes how the scripts are executed afterwards

this can easily break scripts that are executed after (especially because Cygwin has its own rules for linebreaks)

Here is an example of this github actions run which uses setup-ocaml and runnings scripts with shell: bash

Before opam init
image

After opam init
image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions