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

Aberta
#196 0 comentários 0 reações 0 responsáveis Ver no GitHub

Mantenedores costumam responder em até 1 dia

Ninguém assumiu esta issue ainda.

Avaliação

Dificuldade
4/5
Tempo estimado
3-5 dias
Facilidade para iniciantes
45/100
Tipo de issue
Funcionalidade
Clareza
Razoavelmente clara
Status de atividade
Ativa
Stack de tecnologia
powershell
Domínio
devops

Direção de pesquisa

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.

Escrita pelo modelo de indexação a partir do texto da issue.

Descrição

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.

Linguagem predominante
PowerShell
Estrelas
3.5k
Forks
239
Merge médio
5h 47min
PRs com merge (30d)
36

Preparar o ambiente

Primeiros passos

  1. Leia a issue inteira e depois o guia de contribuição do projeto.
  2. Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
  3. Faça um fork do repositório e trabalhe em uma branch.
  4. Abra um pull request que referencie o número da issue.

Mais de microsoft/WindowsDeveloperConfig

Todas as issues de microsoft/WindowsDeveloperConfig

Issues semelhantes

Mais issues de DevOps

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.