goland - 如何在 wsl2 golang 中设置 goroot

标签 goland wsl-2

我正在尝试在 wls2 Goland 中设置 goroot,但是出了点问题:
“所选目录不是 Go SDK 的有效主页”
enter image description here
我该怎么办

最佳答案

目前,从 2020.1.3 开始,您不能。见 the issue that tracks this request并投票/观看更新。

关于goland - 如何在 wsl2 golang 中设置 goroot,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/62837419/

相关文章:

ubuntu - 在 WSL2 (Ubuntu 20.04) 中运行的 Nginx 不会将 HTML 页面提供给位于端口 80 之外的另一个端口上的 Windows 10 主机

git - 对于使用 WSL2 签名的 git 提交,Windows 10 上的 Visual Studio Code 中没有 GPG 密码提示

go - 运行测试时“无法创建临时输出文件”

go - 退出后保持外部进程运行

go - 无法将 'func(c Container) interface{} { return &MyService{} }'(类型func(c Container)interface {})用作ContainerFunc类型

windows - 如何在 Windows 10 上使 wsl2 从停止状态变为运行状态

macos - Intellij IDEA (Golang) 使用/private/var/folders/

testing - Go gRPC 服务器使集成测试失败

windows - 无法使用安装了启用 Hyper-V 和 WSL2 的 VirtualBox 启动 Windows 10 guest

linux - PostgreSQL 10 从/etc 读取 postgresql.conf,但在/var 中指定数据目录