PowerShell / PowerShell/PSScriptAnalyzer
AzureRM.* modules held in use by PSSA when Cluster 0.0.0.1 is scanned, prevents uninstall
Chưa có ai nhận issue này.
- Ngôn ngữ chính
- C#
- Star
- 2.2k
- Fork
- 414
- Merge trung bình
- 13 giờ 1 phút
- Pull request đã merge (30 ngày)
- 2
Mô tả
Repro steps
Install-Module -Name Cluster -RequiredVersion 0.0.0.1 -Repository PSGallery
# This depends on AzureRM, which in turn depends on 45 AzureRM.* modules.
# All get downloaded at install.
Invoke-ScriptAnalyzer -Path [PathToCluster] -Recurse -Severity Error
Invoke-ScriptAnalyzer -Path [PathToCluster] -Recurse -CustomerRulePath [someCustomRulesPath]
Uninstall-Module -Name Cluster -RequiredVersion 0.0.0.1
# Succeeds
Uninstall-Module -Name AzureRM.Websites
# One of the dependencies installed.
# Fails to uninstall, says is currently in use.
Expected Behavior
I should be able to uninstall the AzureRM.* modules. I don't expect PSSA to hold on to them.
We are unable to uninstall any of the AzureRM.* modules because something in PSSA is holding on to them. This appears to only happen for the Cluster 0.0.0.1 module.
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.
Hướng nghiên cứu
Tái hiện các lệnh Install-Module, Invoke-ScriptAnalyzer và Uninstall-Module được liệt kê với Cluster 0.0.0.1, so sánh các lần quét có và không có CustomerRulePath. Theo dõi cách PSScriptAnalyzer tải các mô-đun trong các lần quét này và xác minh rằng các mô-đun AzureRM.* có thể được gỡ cài đặt sau đó; hoàn thành khi tình trạng khóa được báo cáo không còn xảy ra.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Đánh giá
- Công nghệ
- csharp, powershell
- Lĩnh vực
- tooling
- Loại issue
- Lỗi
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức độ hoạt động
- Đình trệ
- Độ rõ ràng
- Khá rõ ràng
- Mức phù hợp với người mới
- 35/100