polarisxu icon indicating copy to clipboard operation
polarisxu copied to clipboard

posts/go/dynamic/go1.18-workspace/

Open utterances-bot opened this issue 2 years ago • 3 comments

Go1.18 快讯:Module 工作区模式

https://polarisxu.studygolang.com/posts/go/dynamic/go1.18-workspace/

utterances-bot avatar Mar 19 '22 03:03 utterances-bot

您好,请问使用go1.18 work工作区后,在example中引用了第三方包,如何执行go mod tidy呢?在example下执行命令就会报本地库404,使用go get 单独获取可以。

lzl649-89 avatar Mar 19 '22 03:03 lzl649-89

@lzl649-89 执行 go work sync

polaris1119 avatar Oct 23 '22 11:10 polaris1119

这里用 go mod init github.com/polaris1119/mypkg是不是也有同样的效果

TeavenX avatar Oct 27 '22 10:10 TeavenX