Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

dotnet-install.sh depends on awk without checking for it

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

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

評価

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

調査の方向性

まず dotnet-install.sh から始め、依存関係のチェックと、次に挙げる awk の呼び出し箇所をたどってください: get_download_link_from_aka_ms、parse_globaljson_file_for_version、get_remote_file_size、downloadcurl、downloadwget。awk を事前にチェックするか、使用を取り除くかを判断し、許容されるファイルサイズ取得の失敗と、明示的な --version の経路を考慮してください。awk がない場合に前提条件を示す明確なエラーが出るか、これらの経路が awk に依存しなくなれば完了です。

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

説明

untriaged

The minimal Azure Linux 4 base image (mcr.microsoft.com/azurelinux/core:4) does not include awk. dotnet-install.sh only checks for curl or wget, so it accepts this environment but can fail later when resolving a channel/latest version.

The missing dependency surfaced when moving SuperPMI workloads to the Azure Linux 4 Helix image: https://github.com/dotnet/runtime/pull/136337. The image-side fix is https://github.com/dotnet/dotnet-buildtools-prereqs-docker/pull/1782.

awk is used in:

  • get_download_link_from_aka_ms: parsing redirect status codes and the download URL (--channel/latest resolution).
  • parse_globaljson_file_for_version: parsing the SDK version (--jsonfile).
  • get_remote_file_size: extracting Content-Length after a download; failure here can be tolerated.
  • downloadcurl / downloadwget: parsing HTTP status codes on download failures.

Explicit --version skips the aka.ms path, so the problem does not necessarily prevent every installation. Please check for awk up front with a clear prerequisite error, or remove the dependency.

主要言語
PowerShell
スター
212
フォーク
123
PR マージ指標
30日以内にマージされた PR はありません

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

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

dotnet/install-scripts のほかの issue

dotnet/install-scripts の issue をすべて見る

似ている issue

CLI の issue をもっと見る

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

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