bug: uninstall failed when `pwsh.exe` installed by scoop

オープン
#147 コメント 0 件 リアクション 1 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
55/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
静か
技術スタック
powershell
領域
cli

調査の方向性

README.md を読み、参照されている PR #74 を確認して、既存の根本的な修正と Scoop shim の動作を理解してください。最小限の解決策では、Scoop でインストールした pwsh.exe ではなく Microsoft の pwsh.exe を使用するようユーザーに明確に伝える必要があります。その文言が報告されたアンインストールの失敗に対応していることを確認してください。

索引モデルが issue の本文から書いたものです。

説明

Details:
#143
The root cause is:

  • The shim executable generated by Scoop is not the actual pwsh.
  • It must first parse the target program, determine whether it's GUI or console, and then forward the arguments.
  • In certain environments, the parsing fails and outputs:
    Shim: Could not determine if target is a GUI app. Assuming console.
  • It returns a non-zero exit code, which the Coreutils uninstaller treats as a fatal error.

Simplest fix it is add a tip in README.md ,let users use microsoft's pwsh.exe rather than other pwsh.exe(e.g. scoop)

To fix this fundamentally, you might want to consider my PR #74.

主要言語
Rust
スター
5.2k
フォーク
107
平均マージ
2日 19時間
マージ済み PR(30日)
4

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

microsoft/coreutils のほかの issue

microsoft/coreutils の issue をすべて見る

似ている issue

Rust の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。