python from msys64 directory gets invoked on windows
未关闭
还没有人认领这个 Issue。
- 主要语言
- JavaScript
- 星标
- 990
- 派生
- 369
- 平均合并
- 18 分钟
- 30 天内合并 PR
- 3
描述
My workflow has setup-python step followed by setup-ruby. Noticed that the python from msys64 directory is getting invoked, due to it appearing before the Python directory in the PATH.
C:/hostedtoolcache/windows/Ruby/3.4.5/x64/msys64/ucrt64/bin/python.exe: No module named pip
I think this line is responsible for this feature/bug.
https://github.com/ruby/setup-ruby/blob/30011b6444339b8df773cfc724e1631d805a5e64/windows.js#L75
PATH variable in GitHub actions.
/c/hostedtoolcache/windows/cs/2.1.17/x64:/c/Users/runneradmin/cs/bin:/c/hostedtoolcache/windows/sbt/1.11.2/sbt/bin:/c/hostedtoolcache/windows/Java_Temurin-Hotspot_jdk/21.0.8-9.0/x64/bin:/c/hostedtoolcache/windows/Ruby/3.4.5/x64/bin:/c/hostedtoolcache/windows/Ruby/3.4.5/x64/msys64/ucrt64/bin:/c/hostedtoolcache/windows/Ruby/3.4.5/x64/msys64/usr/bin:/c/Users/runneradmin/AppData/Roaming/Python/Python312/Scripts:/c/hostedtoolcache/windows/Python/3.12.10/x64/Scripts:/c/hostedtoolcache/windows/Python/3.12.10/x64:
Would it be possible to make this configurable?
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
从第 75 行的 windows.js 开始,检查 setup-python 运行后 setup-ruby 如何更改 PATH。使用 issue 中显示的 PATH 重现 workflow,然后确定可配置的顺序应如何运行;完成的标准是 Python 解析到已配置的 Python 安装,而不是 Ruby 的 msys64 Python。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- github-actions, javascript, python
- 领域
- ci-cd, operating-systems, tooling
- Issue 类型
- 缺陷
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 42/100