conda-forge / conda-forge/git-feedstock

msys-2.0.dll conflict with m2-msys2-runtime package on Windows

Open
#135 2 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
Shell
Stars
1
Forks
43
Avg merge
2d 14h
Merged PRs (30d)
2

Description

### Solution to issue cannot be found in the documentation.

- [X] I checked the documentation.

### Issue

The git package has a conflict with the m2-msys2-runtime package. Both install a version of msys-2.0.dll. The version installed by git is newer than the one installed by m2-msys2-runtime. If m2-msys2-runtime is installed after git, then commands like `sh` no longer work on windows.

```
mamba create -n git-test1
mamba activate git-test1
mamba install git -y
git # works
sh # works
mamba install m2-msys2-runtime -y
git # works
sh # fails!
```

If the order is reversed, then the conflict doesn't happen because the git msys-2.0.dll is newer.

### Installed packages

```shell
# packages in environment at D:\ws\conda\envs\git-test1:
#
# Name Version Build Channel
git 2.42.0 h57928b3_0 conda-forge
m2-msys2-runtime 2.5.0.17080.65c939c 3 conda-forge
msys2-conda-epoch 20160418 1 conda-forge
```

### Environment info

```shell
active environment : git-test1
active env location : D:\ws\conda\envs\git-test1
shell level : 2
user config file : C:\Users\user\.condarc
populated config files : C:\Users\user\mambaforge\.condarc
C:\Users\user\.condarc
conda version : 23.3.1
conda-build version : not installed
python version : 3.10.12.final.0
virtual packages : __archspec=1=x86_64
__cuda=12.2=0
__win=0=0
base environment : C:\Users\user\mambaforge (writable)
conda av data dir : C:\Users\user\mambaforge\etc\conda
conda av metadata url : None
channel URLs : https://conda.anaconda.org/conda-forge/win-64
https://conda.anaconda.org/conda-forge/noarch
package cache : D:\ws\conda\pkgs
envs directories : D:\ws\conda\envs
C:\Users\user\mambaforge\envs
C:\Users\user\.conda\envs
C:\Users\user\AppData\Local\conda\conda\envs
platform : win-64
user-agent : conda/23.3.1 requests/2.31.0 CPython/3.10.12 Windows/10 Windows/10.0.19045
administrator : False
netrc file : None
offline mode : False
```

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the documented Windows environment with git and m2-msys2-runtime installed in both orders, then compare the package metadata and installed msys-2.0.dll versions. Done means installing either package after the other no longer causes sh to fail on Windows.

Written by the indexing model from the issue text.

Assessment

Tech stack
git, shell
Domain
tooling
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.