(dsc): `PSResourceList` manifest migration for deprecated `whatIf` to `set.whatIfArg`
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 初心者へのやさしさ
- 68/100
調査の方向性
Locate psresourcelist.dsc.resource.json, the Repository manifest, and the README. Compare the existing set and what-if commands with the DSC 3.2.0 whatIfArg schema, then validate the -File invocation with stdin input in pwsh. Done means both manifests use the supported schema and exit handling, and the README states the minimum DSC version.
索引モデルが issue の本文から書いたものです。
説明
Summary of the new feature / enhancement
psresourcelist.dsc.resource.json implements what-if through the top-level whatIf manifest operation. DSC deprecated that operation in 3.2.0 in favour of set.whatIfArg, where the engine appends an argument to the normal set command instead of running a separate command. Staying on whatIf means a deprecation warning today and a break when the property is removed.
Current manifest:
"whatIf": {
"executable": "pwsh",
"args": [ "-NoLogo", "-NonInteractive", "-NoProfile", "-ExecutionPolicy", "Bypass", "-Command",
"$Input | ./psresourceget.ps1 -resourcetype 'psresourcelist' -operation set -WhatIf; exit $LASTEXITCODE" ],
"input": "stdin",
"return": "state"
}
Proposed technical implementation details (optional)
- Replace the
whatIfblock with"whatIfArg": "-WhatIf"insideset. whatIfArgis appended after the existingargs, which does not work with-Command "...". Switchsetto-File ./psresourceget.ps1 -ResourceType psresourcelist -Operation setso the appended-WhatIfbinds to the script's[switch]$WhatIf. Verified locally thatpwsh -Filewith stdin input works for this script.- Bump
$schemaon both manifests to a version that includeswhatIfArgand set the minimum supported DSC version to 3.2.0 in the README. - While in the manifests, the
Repositorymanifest's-Commandinvocations should also gain; exit $LASTEXITCODEor move to-File
- 主要言語
- C#
- スター
- 577
- フォーク
- 114
- 平均マージ
- 23時間 17分
- マージ済み PR(30日)
- 8
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
PowerShell/PSResourceGet のほかの issue
-
Create parent directories only after the containment check in InstallHelper.TryExtractToDirectoryオープン
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
PowerShell/PSResourceGet#2056 ·
メンテナーはふだん 1 日以内に返信
-
feature_request
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
PowerShell/PSResourceGet#2013 · コメント 3 件 ·
メンテナーはふだん 1 日以内に返信
-
Needs-Triage
難易度 3/5 1〜2日 初心者へのやさしさ 68/100
PowerShell/PSResourceGet#2059 ·
メンテナーはふだん 1 日以内に返信
-
Use GitHub app token to authenticate to GitHub resources対応中かも @adityapatwardhan が 11 日前に担当しました。 オープンfeature_request Needs-Triage
PowerShell/PSResourceGet#2057 · 担当者 1 名 ·
メンテナーはふだん 1 日以内に返信
-
Needs-Triage
難易度 3/5 1〜2日 初心者へのやさしさ 68/100
PowerShell/PSResourceGet#2055 ·
メンテナーはふだん 1 日以内に返信
PowerShell/PSResourceGet の issue をすべて見る
似ている issue
-
needs triage
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
spectreconsole/spectre.console#2221 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 1/5 1時間未満 初心者へのやさしさ 92/100
-
area/navigationview 🧭 difficulty/starter 🚀 good first issue kind/bug platform/all project/navigation-lifecycle 🧬 triage/untriaged
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
unoplatform/uno#24925 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
PhilippC/keepass2android#3315 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
DamianEdwards/ghcp-spend-tray#39 ·
メンテナーはふだん 1 日以内に返信