Please fix PowerShellGetv2 Bug for Powershell Core modules update

Đang mở
#617 1 bình luận 1 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
2/5
Thời gian dự kiến
1-3 giờ
Mức phù hợp với người mới
35/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
powershell
Lĩnh vực
cli, tooling

Hướng nghiên cứu

Bắt đầu bằng cách xem xét pull request #592 của PowerShellGetv2 được tham chiếu và tái hiện hành vi cập nhật mô-đun trong PowerShell Core. Được xem là hoàn tất khi các mô-đun vốn được cài đặt toàn cục vẫn nằm trong phạm vi toàn cục sau khi cập nhật, thay vì được cài đặt lại cho người dùng hiện tại.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

Needs-Attention :wave:
Prerequisites
  • Write a descriptive title.
  • Make sure you are able to repro it on the latest released version
  • Search the existing issues.
Steps to reproduce

Since this new PowerShellGet module is still not ready and doesn't look like it will be anytime soon (it's more than a year now since I posted the original bug in the old module) I really think the bug in the old module which will reinstall all modules in the user scope instead of the global scope if you update a module should be fixed with my Pull Request there. Could you maybe make this happen even though its not under development any more? You still add other stuff to it apparently, and your own Powershell Core Product still gets delivered with this faulty module and I'm sure it breaks the usage for many people,, maybe without them even knowing.
This is the Bugfix for the old module: https://github.com/PowerShell/PowerShellGetv2/pull/592
I'm adding this Bug here because I don't think you're looking at the bugs of your old module any more.
I think fixing such a major bug with only one line should be doable if you're not able to get the new module out, I have to fix your module manually every time, that can't be it. Please do something about that :/
The fix is also very easy, it's just one line that needs to be fixed.

Expected behavior
Old module should reinstall Powershell Core modules in the global scope if they were originally installed in the global scope.
Actual behavior
Will reinstall ALL Powershell Core modules in the current user scope, even if they were originally installed in the global scope. This will only happen in Powershell Core.
Error details

No response

Environment data
Problem is in module PowerShellGetv2, doesn't depend on any other module.
Visuals

No response

Ngôn ngữ chính
C#
Star
576
Fork
114
Merge trung bình
1 ngày 2 giờ
Pull request đã merge (30 ngày)
7

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. 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.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của PowerShell/PSResourceGet

Tất cả issue của PowerShell/PSResourceGet

Issue tương tự

Thêm issue về C#

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.