aka.ms/devconfig/wsl-comfort/setup.ps1 redirects to Bing, so the README's WSL Comfort command fails

未关闭 适合新手
#187 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
2/5
预计耗时
1 小时以内
新手友好度
62/100
Issue 类型
缺陷
描述清晰度
描述清楚
活跃度
活跃
技术栈
powershell, wasm

调研方向

失败的命令是 README 中的 irm https://aka.ms/devconfig/wsl-comfort/setup.ps1 | iex 这一行。短链接是在仓库外部配置的重定向,因此仓库内的修复方式是让 README 指向 src/wsl-comfort/setup.ps1 可用的 raw URL,或者如果确实需要,在根目录添加 wsl-comfort/setup.ps1。验证时,先将 README 中的代码片段与返回 404 的路径进行对照,然后确认新 URL 返回的是脚本,而不是重定向到 Bing。当文档中的命令能够成功安装 WSL Comfort,且不再引用过时的链接时,即视为完成;aka.ms 重定向本身需要维护者处理。

由索引模型根据 Issue 内容生成。

描述

The WSL Comfort install command in the README fails, because the short link isn't registered:

PS> irm https://aka.ms/devconfig/wsl-comfort/setup.ps1 | iex
Invoke-Expression: Missing expression after unary operator '--'.

https://aka.ms/devconfig/wsl-comfort/setup.ps1 returns 302 to https://www.bing.com?ref=aka&shorturl=devconfig/wsl-comfort/setup.ps1, so iex is handed Bing's HTML. By contrast, aka.ms/devconfig/standard/setup.ps1 and aka.ms/devconfig/full/setup.ps1 redirect to the scripts on raw.githubusercontent.com as expected.

There's also no root-level copy to point the link at: wsl-comfort/setup.ps1 returns 404 on main, although wsl-comfort/install.ps1 exists. Only src/wsl-comfort/setup.ps1 is present, and running that directly works as a workaround:

irm https://raw.githubusercontent.com/microsoft/WindowsDeveloperConfig/main/src/wsl-comfort/setup.ps1 | iex

Checked 2026-11-02 against main at fb56461.

主要语言
PowerShell
星标
3.5k
派生
239
平均合并
9 小时 32 分钟
30 天内合并 PR
39

环境准备

  • 没有 Dockerfile 或 Docker Compose 文件
  • 没有 Pull Request 模板
  • 阅读贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

microsoft/WindowsDeveloperConfig 的其他 Issue

查看 microsoft/WindowsDeveloperConfig 的全部 Issue

相似的 Issue

更多 DevTools Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。