python from msys64 directory gets invoked on windows
オープン
まだ誰も着手していません。
- 主要言語
- JavaScript
- スター
- 990
- フォーク
- 369
- 平均マージ
- 18分
- マージ済み PR(30日)
- 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 にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
windows.js の 75 行目から開始し、setup-python の実行後に setup-ruby が PATH をどのように変更するかを調査します。Issue に示されている PATH を使用して workflow を再現し、その後、設定可能な順序がどのように動作すべきかを判断します。完了とは、Python が Ruby の msys64 Python ではなく、設定された Python インストールに解決されることです。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- github-actions, javascript, python
- 領域
- ci-cd, operating-systems, tooling
- issue の種類
- バグ
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 42/100