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

Use of positional parameters in build.sh

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

メンテナーはふだん 5 日以内に返信

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

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
35/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
cmake, shell
領域
build-system

調査の方向性

まず build.sh を読み、位置パラメータの処理と getopts の解析に注目します。noroot と複数の -D CMAKE_OPTS 引数を使って vcpkg のケースを再現し、その後、オプション解析を途中で停止せずに、スクリプトが意図された引数の組み合わせを受け付けることを確認します。

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

説明

build infra iOS

Is your feature request related to a problem?
Right now build.sh uses a hybrid of positional parameters and getopts to parse the rest of the parameters.
The problem is that getopts stops parsing at the first of the non-getopts parameters. Combined with the fact that positional parameters need to be on the first 3 positions basically limits the total number of parameters to 3 creating problems if more -D [CMAKE_OPTS] need to be passed.

Describe the solution you'd like.
Consider moving to noroot & friends arguments at the end. Or integrate them into getopts arguments.

Right now the only way not take make build.sh ignore the -D arguments when using vcpkg is to move noroot at the end and have up to 2 -D.

主要言語
C
スター
102
フォーク
66
平均マージ
5日 14分
マージ済み PR(30日)
9

環境構築

このプロジェクトの環境構築ファイルはまだ確認していません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

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

microsoft/cpp_client_telemetry のほかの issue

microsoft/cpp_client_telemetry の issue をすべて見る

似ている issue

C の issue をもっと見る

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

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