4

GoLand 疯狂刷 go mod list -m -json all

 1 year ago
source link: https://www.v2ex.com/t/865584
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

V2EX  ›  Go 编程语言

GoLand 疯狂刷 go mod list -m -json all

  kinboy · 1 小时 24 分钟前 · 273 次点击
  • Win11 GoLand 打开 WSL2 中的代码项目
  • 多 module project ,各 module 下依赖都能正常下载编译
  • go version 1.18.3
  • 启用 go module

近期从 MBP 迁移到 Win11 开发环境,Goland 在不知道什么触发机制的情况下疯狂在后台刷 go mod -m -json all 命令,偶现,结果还是运行失败。虽然问题不大,但是实在难受

第 1 条附言  ·  43 分钟前

补充一下环境描述

  • GOPATH 和 GOROOT 配置的 WSL2 中的路径
  • go list 命令执行的结果是运行失败,但是没有具体原因,失败后立即重复执行
  • Goland还提示无法运行 gofmt,同样没有提示具体原因

我猜测可能是Windows上WSL文件系统的bug,导致Windows主机上安装的Goland偶尔会出现无法使用WSL中部署的go环境,纯属猜测,吐槽一下Windows bug真多


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK