Skip to content

[enhancement]: Reduce tool conflicts with agent's git client #5420

@pf-arc

Description

@pf-arc

Describe your feature request here

For some tasks, we are using tools from MSYS2, which we pre-install on self-hosted agents. The machine is set up so that mingw64\bin of the MSYS2 installation is added to the system's PATH. We are now running into issues in our pipelines because the pipeline agent prepends C:\agents\externals\git\mingw64\bin to PATH, which contains DLLs that may be out of sync with the MSYS2 installation. In particular, we ran into the following issue: msys2/MINGW-packages#24355

I am aware that there are workarounds, we are now simply prepending our MSYS2 installation to PATH in the script before we make calls to MSYS2 executables. As a suggestion to reduce conflicts though, the pipeline agent could prepend C:\agents\externals\git\cmd instead, which only contains the executable without all of the DLLs.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions