Custom `psmodulepath` not supported in `Microsoft.Adapter/PowerShell`
メンテナーはふだん 2 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 35/100
調査の方向性
dsc 3.2.0-preview.11 を使用して dsc config get で両方の YAML 例を再現し、その後 Microsoft.Adapter/PowerShell が psmodulepath プロパティをどのように処理するかを追跡します。新しいアダプターベースの構成でカスタムモジュールパスが受け入れられ、コマンドがプロパティ不足の例外なしに完了すれば完了です。
索引モデルが issue の本文から書いたものです。
説明
Prerequisites
- Write a descriptive title.
- Make sure you are able to repro it on the latest version
- Search the existing issues.
Summary
I was trying out the new Microsoft.Adapter/PowerShell and use the psmodulepath to add custom modules, but it doesn't seem to work. In the old way, it's possible to do something like:
$schema: https://aka.ms/dsc/schemas/v3/bundled/config/document.json
resources:
- name: Custom module
type: Microsoft.DSC/PowerShell
properties:
psmodulepath: C:\CustomModules;<existingModulePaths>
resources:
- name: PowerShell 7 Preview
type: Microsoft.WinGet.DSC/WinGetPackage # Direct resource type
properties:
Id: Microsoft.PowerShell.Preview
Ensure: Present
Then, in the new way, I would expect something like:
$schema: https://aka.ms/dsc/schemas/v3/bundled/config/document.json
resources:
- name: PowerShell 7 Preview
type: Microsoft.WinGet.DSC/WinGetPackage
metadata:
Microsoft.DSC:
requireAdapter: Microsoft.Adapter/PowerShell
# psmodulepath: C:\CustomModules
properties:
Id: Microsoft.PowerShell.Preview
Ensure: Present
psmodulepath: C:\CustomModules;<existingModulePaths>
But that's going to fail with: Exception: The property 'psmodulepath' cannot be found on this object. Verify that the property exists and can be set.
Steps to reproduce
Run above examples with dsc config get
Expected behavior
Expect to be able to use custom module paths.
Actual behavior
Not able to use custom module path
Error details
Environment data
Name Value
---- -----
PSVersion 7.5.4
PSEdition Core
GitCommitId 7.5.4
OS Microsoft Windows 10.0.26200
Platform Win32NT
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
WSManStackVersion 3.0
Version
dsc 3.2.0-preview.11
Visuals
No response
- 主要言語
- Rust
- スター
- 532
- フォーク
- 76
- 平均マージ
- 2日 10時間
- マージ済み PR(30日)
- 15
環境構築
このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
PowerShell/DSC のほかの issue
-
難易度 5/5 1週間以上 初心者へのやさしさ 35/100
PowerShell/DSC#1736 ·
メンテナーはふだん 2 日以内に返信
-
`directives.version` is checked against dsc-lib's crate version (3.2.0), not the running dsc versionオープン
難易度 3/5 半日 初心者へのやさしさ 74/100
PowerShell/DSC#1735 ·
メンテナーはふだん 2 日以内に返信
-
Issue-Enhancement
難易度 5/5 1週間以上 初心者へのやさしさ 38/100
PowerShell/DSC#1729 · コメント 1 件 ·
メンテナーはふだん 2 日以内に返信
-
Feature Request: Support dsc functions in executable args対応中かも @SteveL-MSFT が 11 日前に担当しました。 オープンIssue-Enhancement
難易度 4/5 3〜5日 初心者へのやさしさ 62/100
PowerShell/DSC#1722 · コメント 4 件 · 担当者 1 名 ·
メンテナーはふだん 2 日以内に返信
-
Dev-UX Needs Triage
難易度 5/5 1週間以上 初心者へのやさしさ 35/100
PowerShell/DSC#1694 ·
メンテナーはふだん 2 日以内に返信
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
メンテナーはふだん 1 日以内に返信
-
[Bug]: Bedrock request metadata forwarding does not work for /embeddings対応中かも このイシューにリンクされたプルリクエストがオープン中、またはマージ済みです。 オープンbug llm translation
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 1 日以内に返信
-
pytest plugin: a crashed xdist worker aborts the whole session with INTERNALERROR対応中かも @hazelxue が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 85/100
メンテナーはふだん 1 日以内に返信
-
skillfs: one malformed chat-log line aborts the entire skill-usage analysis (skill_usage_from_chat_logs.py)対応中かも @zjncs が今日担当しました。 オープンcomponent:skillfs
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
agentic-os-org/ANOLISA#6116 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信