The WSL step needs a real console, so the scripts cannot run hidden or with redirected output

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

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
45/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
powershell
Lĩnh vực
devops

Hướng nghiên cứu

Start with steps/wsl.ps1 around line 86 and read how the script invokes wsl --install and handles the WSL setup. Compare the proposed non-interactive installation steps with documenting the visible-console requirement; the issue does not choose between these approaches. Done means callers can run the WSL step without a visible console, or the scripts clearly document that requirement.

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

Mô tả

steps/wsl.ps1 starts wsl --install without -NoNewWindow because wsl's install bootstrap needs a real console to run against (line 86 on main @ 2ac20c5), and a separate WSL window may pop up. So the scripts can't run hidden or with redirected output (CI, a service, or an app that shows progress itself): a caller has to start the whole run in a visible console window.

Proposal: make the WSL step work without a console (for example wsl --install --no-distribution plus the distro install as separate, non-interactive steps), or document that the scripts need a visible console so callers know up front.

Ngôn ngữ chính
PowerShell
Star
3.5k
Fork
239
Merge trung bình
6 giờ 3 phút
Pull request đã merge (30 ngày)
37

Chuẩn bị môi trường

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 microsoft/WindowsDeveloperConfig

Tất cả issue của microsoft/WindowsDeveloperConfig

Issue tương tự

Thêm issue về DevOps

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.