Custom `psmodulepath` not supported in `Microsoft.Adapter/PowerShell`
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 35/100
Hướng nghiên cứu
Tái hiện cả hai ví dụ YAML bằng dsc config get với dsc 3.2.0-preview.11, sau đó theo dõi cách Microsoft.Adapter/PowerShell xử lý thuộc tính psmodulepath. Được xem là hoàn tất khi một đường dẫn module tùy chỉnh được chấp nhận trong cấu hình dựa trên adapter mới và lệnh hoàn tất mà không gặp ngoại lệ thiếu thuộc tính.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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
- Ngôn ngữ chính
- Rust
- Star
- 536
- Fork
- 76
- Merge trung bình
- 1 ngày 11 giờ
- Pull request đã merge (30 ngày)
- 15
Chuẩn bị môi trường
Khởi chạy dev container của dự án ngay trên trình duyệt, bằng tài khoản GitHub của bạn.
- Không có Dockerfile hay tệp Docker Compose
- Không có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của PowerShell/DSC
-
Issue-Enhancement Needs Triage
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 30/100
PowerShell/DSC#1750 · 3 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Issue-Bug Need-Review
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 45/100
PowerShell/DSC#1749 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Issue-Bug Need-Review
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 40/100
PowerShell/DSC#1748 · 4 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
"apt install dsc" will install the preview release instead of stableCó thể đã có người làm @SteveL-MSFT đã nhận 4 ngày trước. Đang mởIssue-Bug Need-Review
PowerShell/DSC#1746 · 1 bình luận · 1 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Issue-Enhancement
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 35/100
PowerShell/DSC#1737 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của PowerShell/DSC
Issue tương tự
-
ai_p2
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
ClickHouse/ClickHouse#125522 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
[Bug]: OpenRouter streaming chunks report the requested router name instead of the model OpenRouter servedCó thể đã có người làm @Mrun25 đã nhận hôm nay. Đang mởbug llm translation
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
BerriAI/litellm#46095 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug effort:low flow:bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 74/100
jaroslawherod/micold-ai-ide#788 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Docs: refresh target-app-parity and file-format-parity against mainCó thể đã có người làm @vangel76 đã nhận hôm nay. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
storytold/photocraft#4417 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
bevyengine/dlss_wgpu#37 ·